1850331 Members
2662 Online
104054 Solutions
New Discussion

User profile

 
addendum1
New Member

User profile

I have change the umask in ~users/.profile of the user so that the user change the umask when telnet to the server , but when the user ftp to the server , then it don't run the ~user/.profile , if I want the user also run the ~user/.profile or can change the umask when ftp to the user , how to set it ? thx
2 REPLIES 2
Pat Lieberg
Valued Contributor

Re: User profile

I don't believe there are any login files run when a user logs in via ftp. You can set a default umask for the ftpd process though, but that would mean ALL users logging in through ftp would use the same umask.

See man ftpd.
Geoff Wild
Honored Contributor

Re: User profile

I believe this will work:

Edit the /etc/inetd.conf file to have the following syntax for the ftp daemon.

ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -u 002

Then you issue the command:

/usr/sbin/inetd -c

refer to the ftpd man page for details on the ftpd flags

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.