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.
Hello, I created a user "user1" and restricted the folder he can access using rbash but at the same time I want him to be able to upload files in that folder but that folder is also used by apache web server,
How can I do that without removing apache from the users? using chown or chmod?a practical example?
Permissions on a file or directory are organized in 3 categories: Owner, group, and other. In each category, there are three types of permission: read, write, and execute. For a file, execute is used only when the file is some kind of executable code--including scripts. For directories, the execute permission also controls whether one is allowed to create new files or directories.
If. for example, you want to grant privileges based on group membership, then it does not matter who else is in that group----all members of the group will have the same privileges (controlled by what is in the "group" field in the file or directory permissions.
The use of "rbash" appears act as a layer on top of these basics--I'm not familiar with the details, but Google finds lots of information
For directories, the execute permission also controls whether one is allowed to create new files or directories.
I always believed the x perm on a dir is to enable you to traverse it using wildcards (search bit) ; without you can only list known filenames eg http://stackoverflow.com/questions/7...ions-reasoning if 'r' is set on in both cases.
I'm pretty sure 'w' is what allows you to create a file in that dir; its a write op on the dir file.
Hello, I created a user "user1" and restricted the folder he can access using rbash but at the same time I want him to be able to upload files in that folder but that folder is also used by apache web server,
How can I do that without removing apache from the users? using chown or chmod?a practical example?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.