N
N
nepster-web2013-12-24 04:55:12
System administration
nepster-web, 2013-12-24 04:55:12

How to give access to certain users in a certain folder?

There is a server, OS centos.
It is necessary to give access to certain users to a certain folder.
- I created a folder in: var/www/myfolder
- I created a group d_users
- then I created a user user1 /home/user1/
By accessing via ftp I get exactly to /home/user1/ , there are files for example .bash_logout, .bash_profile .bash_logout
Task such, you need to create a symbolic link games that would lead to var/www/myfolder That is,
when a user comes in via FTP, he should see:
- .bash_logout
- .bash_profile
- .bash_logout
- games (which leads to var/www/myfolder )
We give permissions so that there are no questions later:
chown -R user1:user1 var/www/myfolder
chmod 777 var/www/myfolder I
create a link:
ln -s /var/www/myfolder/ myfolder
The folder appears, such a bluish color if possible so to speak, however if I come on ftp I do not see it. Although there is to create a simple folder, then all is well.
Please tell me what's the scam?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
onvova, 2013-12-24
@nepster-web

As a fortuneteller, I don’t know what is used as an ftp server ..
by default, centos uses vsftpd, in which, again, by default, sorry for the tautology, it is forbidden for users to go beyond the home directory (/etc/vsftpd /vsftpd.conf - chroot_local_user=yes). For more details, google "vsftpd symlink".
Options are either chroot_local_user=no , which is not kosher, the user gets access to everything, or mount --bind instead of symlinks

S
sonik_spb, 2013-12-24
@sonik_spb

Can your ftp server handle symlinks? =) Most likely not.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question