Solved

User Permission

Posted on 2004-04-26
1
595 Views
Last Modified: 2013-12-15
Hi

As a root if i am to give full administrative previliges or set up read/write permissions to a user on a particular folder how do i do?

Thanks,
Kalpana
0
Comment
Question by:kalpana_2100
[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
1 Comment
 
LVL 12

Accepted Solution

by:
paullamhkg earned 280 total points
ID: 10925843
you can use chmod and chown to give the previliges to user

for eg.  a folder call /share for userA to have read write only other users can't access so

chown userA /share
chmod 700 /share

this will only allow userA to access the /share

but if you want userA and userB to access /share together, you might need to add a group to use the groups access right to control

groupadd share

usermod -G share userA userB    <-- this will assign userA and userB to belong to share group
chown root:share /share             <-- now the /share folder owned by root and also the share group
chmod 770 /share                      <--  this will allow root and the member of share group to access the /share folder.

normally mode # 1 = execute mode # 2 = write mode # 4 = read

so 1 + 2 + 4 (7) will be full access, if only read write should 2 + 4 (6)

will this what you looking for??
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to enable sync between two yum repo? 1 54
cannot rename datastore 3 97
pvcreate issue 5 34
how to include conditional log rotate in liunx. 17 70
This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

749 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