PDA

View Full Version : how to make ftp user in linux


o0O0o.o0O0o
07-22-2009, 06:59 AM
i have directory called backups.

I want to download those backups to my computer.
how can i make the ftp user so that that user has only read permission to that folder

primefalcon
07-22-2009, 07:29 AM
i have directory called backups.

I want to download those backups to my computer.
how can i make the ftp user so that that user has only read permission to that folder
c panel should have an option for create ftp accounts, remember the name of the account and use that to log in with your ftp program such as filezilla or evn just use your browser in this method

ftp://user@website example ftp://fred@fredssite.com/route/to/folder/

you will be prompted for a password then

and use the username of the ftp user you created in cpanel, and give that user access to a group that only has read only permissions of that folder and files

as i said however I still recommend using secure ftp not pure ftp

o0O0o.o0O0o
07-22-2009, 07:42 AM
Cpanel can make ftp but it shows only user directory like

/home/username

But i have made directory /backups and have given read access to some user.
now how can get the ftp to access that folder.

1 year back Oracleguy told me to use symbolic links so that i can link
ln -s /home/username/backup /backups

It worked at that time but not now

But in ftp , when i click on those links , it says ftp failed.

meanwhile whats difference between secure ftp and pure ftp

primefalcon
07-22-2009, 08:07 AM
Cpanel can make ftp but it shows only user directory like

/home/username

But i have made directory /backups and have given read access to some user.
now how can get the ftp to access that folder.

1 year back Oracleguy told me to use symbolic links so that i can link
ln -s /home/username/backup /backups

It worked at that time but not now

But in ftp , when i click on those links , it says ftp failed.

meanwhile whats difference between secure ftp and pure ftp

sftp is a complete shell type login exept usage wise its just like your your ftp manager, so its a full user login if you like, also via ftp everything is sent plain text including passwords and such with ssh/sftp all communication is encrypted so which prevents the man in the middle attack which is so easy with ftp.....

Also you can get shell access from remote locations, for example I am using shell access on my hosting account at godaddy who are using RHEL (red hat enterprise linux), which means I can use the full range of commands such as cp mv DATE and more and plus execute script commands :-)

filezilla can get sftp access, if your using linux as your home pc you can just type something along the lines of ssh username@sitename.com to get fuil shell access, if your using windows you can use http://winscp.net/eng/index.php with putty for the same deal.

o0O0o.o0O0o
07-23-2009, 03:36 AM
I have just now chnaged my security setting in my Turbo FTP as SFTP over SSH2
and now my all sumbolic links are working now

But i can access all files root directory . ALmost all folder has the real all permisisons.
Can i chnage the permissions on all folders so that owner can read write x but no one else.

are there any folder which need real all permission.


what should be the permission of home dircetory