DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello, I have a Dedicated server that i run a couple of game servers on.
For Security purposes, I have disable root access and have created a few access for people to access the server.
I have created a group called 'ftpacess' and have the users set to those group access to the /home Directory.
But it seems like everyone a file is changed / removed or added. Seems like the user who are connected on via FTP (Using FileZilla), when they try to unload, download or a change a file name, they get "Permission denied".
Am I doing something wrong?
I have used the following commands:
chmod g+w -R home
chmod g+r -R home
and some times I have to run:
chgrp -R ftpaccess home
I would love to hear any suggestions or tips on how I can improve this and thanks.
drwxrwsrw- 17 root ftpaccess 4096 May 21 00:15 /home
You have a sticky bit on the directory, that is most likely why.
Quote:
Originally Posted by Wikipedia
When a directory's sticky bit is set, the filesystem treats the files in such directories in a special way so only the file's owner, the directory's owner, or root can rename or delete the file. Without the sticky bit set, any user with write and execute permissions for the directory can rename or delete contained files, regardless of the file's owner. Typically, this is set on the /tmp directory to prevent ordinary users from deleting or moving other users' files.
drwxrwsrw- 17 root ftpaccess 4096 May 21 00:15 /home
Quote:
Originally Posted by HMW
You have a sticky bit on the directory, that is most likely why.
That is not the sticky bit. That is the setgid bit, which causes newly created files and subdirectories to inherit the GID of the parent directory.
BTW, those are really weird permissions for /home. The "rw-" permissions for "other" allows everybody to rename anyone's home directory. Actually setting the sticky bit ("chmod +t /home") would prevent that.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.