Solved

User Permission

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
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.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

696 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