The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

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 08:39 AM
changing permissions on a 444 file (ie chmod 444) ajcannon UNIX for Dummies Questions & Answers 1 08-31-2007 10:48 AM
Changing file permissions FredSmith UNIX for Dummies Questions & Answers 7 05-17-2006 08:15 AM
changing default file permissions FredSmith UNIX for Dummies Questions & Answers 8 12-27-2005 02:16 PM
changing file permissions gagansharma Shell Programming and Scripting 0 11-27-2001 11:26 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-05-2004
guix guix is offline
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.
  #2 (permalink)  
Old 07-05-2004
s93366's Avatar
s93366 s93366 is offline
Registered User
  
 

Join Date: Apr 2002
Location: Sweden / Stockholm
Posts: 168
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
  #3 (permalink)  
Old 07-05-2004
Russell Russell is offline
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.
  #4 (permalink)  
Old 07-05-2004
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
Maybe this thread will help.
  #5 (permalink)  
Old 07-06-2004
guix guix is offline
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 !
  #6 (permalink)  
Old 07-06-2004
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
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.
  #7 (permalink)  
Old 07-13-2004
GSalisbury GSalisbury is offline
Registered User
  
 

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

/etc/vsftpd/vsftpd.conf

allows you to tweak-up ftp...
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:11 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0