Solved

User Permission

Posted on 2004-04-26
1
594 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
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CentOS 7 Installation 7 85
Run DOS2UNIX and then execute the command 21 85
awk to variable in bash 2 69
What is linux 4.8.22? Is it the same as ubuntu 16.10 ?? 2 54
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

789 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