?
Solved

User Permission

Posted on 2004-04-26
1
Medium Priority
?
600 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 560 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

How To Reduce Deployment Times With Pre-Baked AMIs

Even if we can't include all the files in the base image, we can sometimes include some of the larger files that we would otherwise have to download, and we can also sometimes remove the most time-consuming steps. This can help a lot with reducing deployment times.

Question has a verified solution.

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

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
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 …
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month10 days, 10 hours left to enroll

764 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