The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
changing /cn@0:console file permissions ErnieG Security 4 12-04-2007 04:39 AM
changing permissions on a 444 file (ie chmod 444) ajcannon UNIX for Dummies Questions & Answers 1 08-31-2007 07:48 AM
Changing file permissions FredSmith UNIX for Dummies Questions & Answers 7 05-17-2006 05:15 AM
changing default file permissions FredSmith UNIX for Dummies Questions & Answers 8 12-27-2005 10:16 AM
changing file permissions gagansharma Shell Programming and Scripting 0 11-27-2001 07:26 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-05-2004
Registered User
 

Join Date: Jul 2004
Posts: 2
Changing file permissions on upload

Hello !

When I connect to a RH FTP server, the files I transfer (from my "windows computer") to this server have the following permissions : -rw------- but I would like those files to have the following permissions : - rw-rw-r-x
How can I do that ???

Thanks for your help !
G.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 07-05-2004
s93366's Avatar
Registered User
 

Join Date: Apr 2002
Location: sweden
Posts: 152
I dont know what kind of ftp server RH uses but serach for umask or defaultmask and the name of the ftpd that you are using on www.google.com

hope that helps

/Peter
Reply With Quote
  #3 (permalink)  
Old 07-05-2004
Registered User
 

Join Date: Jun 2004
Posts: 15
Login to your Red Hat server and set your umask in your shell rc to 112. I think that'll work.
Reply With Quote
  #4 (permalink)  
Old 07-05-2004
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,454
Maybe this thread will help.
Reply With Quote
  #5 (permalink)  
Old 07-06-2004
Registered User
 

Join Date: Jul 2004
Posts: 2
almost

Thanks for your help Perderabo, it helped !

Just one thing. I'd like to set the '---------x' attribute to the files so that images uploaded to the server can be accessible to the web server but I don't think I can do that with umask...
Does anybody know about that ?

Thanks a lot !
Reply With Quote
  #6 (permalink)  
Old 07-06-2004
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,454
That's right, you won't be to set an execute bit via umask (on a non-directory) unless you modify the code for your ftp server. Files are created with 666 and umask can only stop some or all of those bits. It can't add new bits.

Perhaps you can get the ftp client to issue explicit chmod commands.
Reply With Quote
  #7 (permalink)  
Old 07-13-2004
Registered User
 

Join Date: Apr 2002
Location: New Jersey
Posts: 10
On our RH 9

/etc/vsftpd/vsftpd.conf

allows you to tweak-up ftp...
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:32 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0