Unix Technical Forum

FTP file permissions

This is a discussion on FTP file permissions within the AIX Operating System forums, part of the Unix Operating Systems category; --> whenever a user uses FTP to transfer a file to the UNIX box, that file always gets 640 permissions. ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-04-2008, 09:05 PM
sengstock3
 
Posts: n/a
Default FTP file permissions


whenever a user uses FTP to transfer a file to the UNIX box, that file
always gets 640 permissions. I want those files to get 666 permissions.
How can I do that? The umask of the user is set to 00, which does not
seem to have any effect on that user's files when logged in via FTP.







-Mark


--
Posted via http://dbforums.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-04-2008, 09:05 PM
Al Sharka
 
Posts: n/a
Default Re: FTP file permissions

sengstock3 wrote:

> whenever a user uses FTP to transfer a file to the UNIX box, that
> file always gets 640 permissions. I want those files to get 666
> permissions. How can I do that? The umask of the user is set to
> 00, which does not seem to have any effect on that user's files
> when logged in via FTP.



http://tinyurl.com/mw5c
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-04-2008, 09:05 PM
Ron
 
Posts: n/a
Default Re: FTP file permissions

sengstock3 <member25238@dbforums.com> wrote:

Change /etc/inetd.conf for the ftp stanza and use the -u option, for example;

ftp stream tcp nowait root /usr/sbin/ftpd ftpd -u 007

gets a 660 permissions for us. Try 000 for your 666 permissions.

This is from the man pages for ftpd.

-u OctalVal Sets the ftpd daemon's umask. The OctalVal variable must be
specified as an octal value to define the umask. The default umask is an octal
value of 027, which results in file permissions of rw-r-----.


Ron

: whenever a user uses FTP to transfer a file to the UNIX box, that file
: always gets 640 permissions. I want those files to get 666 permissions.
: How can I do that? The umask of the user is set to 00, which does not
: seem to have any effect on that user's files when logged in via FTP.







: -Mark


: --
: Posted via http://dbforums.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-04-2008, 09:05 PM
sengstock3
 
Posts: n/a
Default Re: FTP file permissions


do you think I need to wait until users are off the system before
running 'refresh -s' (to inform the inetd daemon of the changes), or is
it safe to run that during the day?


--
Posted via http://dbforums.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-04-2008, 09:05 PM
Ron
 
Posts: n/a
Default Re: FTP file permissions

You can run it with users on the system - I've done it lots of times without
problems.

sengstock3 <member25238@dbforums.com> wrote:

: do you think I need to wait until users are off the system before
: running 'refresh -s' (to inform the inetd daemon of the changes), or is
: it safe to run that during the day?


: --
: Posted via http://dbforums.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:51 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com