[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: umask and ftp default folder



Jephe Wu wrote:
> 
> 1. how to change default anonymous ftp folder from /home/ftp/pub
> to other folder?

The user 'ftp's home directory (as specified in /etc/passwd)
is the anonymous FTP home directory.  Change it there.

HOWEVER, be careful to preserve the entire contents of /home/ftp
in the new location.  Some of the libraries, binaries and
config files contained therein are critical to FTP working right.
Also, don't mess up the permissions or ownership of those same
files, either.  Because of the chroot anonymous FTP does, the
contents of this directory are a little tricky.

> 2. after I add a line 'umask 002' to ~/.bash_profile then telnet
> to linux server , then I run 'umask' , it report value 002, but
> I ftp to this linux server as the same user, then run 'umask',
> it report value 022, why?
> how can I change ftp default umask value?

I presume you mean here for non-anonymous FTP.
The profile is only read only if you actually start
'bash'.  I don't believe this would happen for an
FTP login.  Try specifying the umask in the .login.

For anonymous access, bear in mind that _nothing_
outside of the anonymous ftp directory will have
any effect on the environment of those logins.
The sub directory /etc in /home/ftp (or wherever)
must be used instead of the normal system /etc.
Anonymous users cannot see outside of /home/ftp.

	- Kevin Colby
	  kevinc grainsystems com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]