1833793 Members
2464 Online
110063 Solutions
New Discussion

Re: ftp access

 
Kamlesh Shete
Advisor

ftp access

Hi all,

I am trying to setup restricted ftp access on 11.0.

Have already setup the passwd entry (with /./), ftp access file etc. But when I try to ftp for that particular user I cannot use ls, pwd or see any data.

I need to know exactly what directories and files need to be copied to the user home dir and with what permissions.

Thx,

SK
4 REPLIES 4
Brian Caudill
New Member

Re: ftp access

Under the ftp users home create a bin directory. Put the commands that you want in there and put a permission of 555. You can also reference the man page for ftpd.

Brian
Brian Markus
Valued Contributor

Re: ftp access

I personally use proftpd on a lot of my servers. It allows you to restrict everything you could ever want with ease.
http://www.proftpd.net/.

It's easy to install, & configure.
Here's an example of a user config

User oracle
Group users
AnonRequirePassword on



AllowAll


DenyAll



Oracle can only see /oracle and nothing else. You clan limit everything you want.


Just a suggustion.

Good luck,

Brian
When a sys-admin say's maybe, they don't mean 'yes'!
Admin.SIF
Frequent Advisor

Re: ftp access

That is what I used, attached document,
Nora
Sysd. Amin. Inforef
Frank Li
Trusted Contributor

Re: ftp access

Under /./ you should create :

mkdir -p usr/bin
cp /sbin/ls usr/bin
cp /bin/pwd usr/bin

mkdir etc
cp /etc/passwd etc #remove unnecessary line in the passwd file.
cp /etc/group etc

Change the permission to 555.
Hi Friend