1832204 Members
2429 Online
110039 Solutions
New Discussion

Re: .profile ran?

 
SOLVED
Go to solution
Brian Overman
New Member

.profile ran?

Can anyone verify or tell me if the .profile is ran when a login opens a FTP session. I don't believe it is, but I am looking for clarification. Also if not, does anyone know how to use a command to set files created by that login to a specific permission. (CHMOD does not appear to work within FTP)

Thanks for any help!
3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor

Re: .profile ran?

Hi Brian,

Ftp (or more properly ftpd) does not source .profile when a user logs in. Chmod within ftp does work but you have to have the proper permissions (i.e. own the file or be a privilidged user).

Regards, Clay
If it ain't broke, I can fix that.
Joseph C. Denman
Honored Contributor
Solution

Re: .profile ran?

no, the .profile is not read.

set permissions:

modifiy the inetd.conf file. add the -u opion to your ftpd entry.

example /usr/lbin/ftpd -u 022


hope this helps.

...jcd...
If I had only read the instructions first??
Joseph C. Denman
Honored Contributor

Re: .profile ran?

after you make modifications to the inetd.conf, you will need to restart inetd.

inetd -c

...jcd...
If I had only read the instructions first??