Solved

how do i grant a user permission to create folders

Posted on 2010-08-18
7
739 Views
Last Modified: 2013-12-06
i need to grant a user higher level of filesystem permissions.  I want to give him root permissions.  i have the admin account.
0
Comment
Question by:globalterminal
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 3

Expert Comment

by:adallen
ID: 33465039
0
 

Author Comment

by:globalterminal
ID: 33465083
got an example?
and sudo will be effective the change whenever the user logs in?
0
 
LVL 3

Accepted Solution

by:
adallen earned 300 total points
ID: 33465121
Follow the man page:

man sudo

you will need to add the user to the sudousers file under /etc/ by using visudo

All the answers are in the man page

example:

user types:

sudo chmod 774 /home/user/bla

or you can give the user full root permissions:

sudo /bin/bash
0
The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

 
LVL 78

Expert Comment

by:arnold
ID: 33465208
Instead of user rights elevation that susdo provides, you might be better off using setfacl if there is a specific location where you want the user to have these rights.


setfacl is equivalent to chmod but allows the admin to configure multiple levels of access to the same folder.
i.e.
group1 has read-only access /resourcefolder
group2 has read-write access /resourcefolder
these can only be seen using getfacl /resourcefolder

setfacl -m g:group1:rx /resourcefolder
setfacl -m g:group2:rwx /resourcefolder

for user you would use u:username:rights

ls / | grep resourcefolder
will have a + at the end of drwxr-xr-x+ to indicate that there is an ACL.
0
 

Author Comment

by:globalterminal
ID: 33465393
the user needs permissions to create subdirectories inside the the /opt dir.

how would i do that?
0
 
LVL 9

Assisted Solution

by:jeremycrussell
jeremycrussell earned 200 total points
ID: 33465901
A few options.

1. Add the user to the owning group of /opt and change permission of /opt to allow it group writeable "chmod g+rwx /opt"

2. Just open /opt to be writable by the world (not recommended) "chmod ago+rwx /opt"

3. Create an acl to allow that single user access to write to /opt. "setfacl -m u:<user>:rwx /opt", replacing <user> with the proper uid.
0
 

Author Comment

by:globalterminal
ID: 33465938
i used chmod 777 opt
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

687 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question