1834499 Members
2694 Online
110068 Solutions
New Discussion

permission bit after ftp

 
SOLVED
Go to solution
Sir T S S
Advisor

permission bit after ftp

hi,
how to set the permission bit,,

let say i want this id bftp to log in to system and put some file , i created home directory for it, and also set the umask to 000 in .profile, i need the file to be writable by same group. but everytime when file ftp in the permission is rw-r-----,,, and some scripts couldn't touch the file even in same group as bftp , how to control /set the permission by ftp.

any help is appreciated.
5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor

Re: permission bit after ftp

The umask in the user's .profile will have no effect but if allowed by ftpaccess the user can do a umask command within ftp before transferring the files. Man ftpaccess for details.
If it ain't broke, I can fix that.
Stuart Whitby
Trusted Contributor

Re: permission bit after ftp

Can't really answer the question *as such*, but if this is a regular job....

I've set up systems before where we only had one way access. This was before the days of the ITRC, so read/write access to the central server from the remote nodes was doable, but not from the central server to the remotes (wierd 4096bps satellite link - best not to ask). What we did to get around this was to set up an ftp script every 10 mins in cron to get files from a certain directory, change the permissions, run the script, then send back the output. Something similar might be workable in your case.

Just an idea....
A sysadmin should never cross his fingers in the hope commands will work. Makes for a lot of mistakes while typing.
Devender Khatana
Honored Contributor

Re: permission bit after ftp

Hi,

Set umask for the files ftped to this server by defining in the /etc/inetd.conf

ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -u002

Add the required umask followed by -u in the line starting from ftp.

HTH,
Devender
Impossible itself mentions "I m possible"
Nguyen Anh Tien
Honored Contributor
Solution

Re: permission bit after ftp

Sir T S S
Advisor

Re: permission bit after ftp

thanks...