Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
There are three numbers (in this case 7, 6, and 0).
The first number designates the permissions for the owner of the file/directory.
Second is the owning group.
Third is everyone else.
Each number is really three bits, rwx. Just read permissions is the bits 100 (4), just write is 010 (2), just execute 001 (1). If you want to give execute and read you add execute and read together and you get 5. If you want to give both read and write it would be 6, and so on.
So 760 as I have in my example is read, write and execute for the owner, read and write for the owning group (which was changed to ftp-users with the chgrp command), and all other users have no access to this directory.
Wow... I can't thank you enough. You gave me a lot more than I expected and your explanation is perfect. Thanks again.
If I can squeeze one more question: if I change the owner of the group, that wouldn't affect root right? root will always have full access to that folder. Is this a correct assumption?
After executing those two commands, I can no longer ftp into the site.
I have a user called myftpaccount which is a member of ftp-users group and in the /etc/passwd file I had changed the home directory for this user to /var/www/html.
When I tried to ftp into my site from a windows machine's command line, I got the following errors:
500 OOPS: Cannot change directory:/var/www/html
500 OOPS: Chield died
I tried ftping into the site on the linux machine and got the following error message:
500 OOPS: Cannot change directory:/var/www/html
Login failed
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.