Solved

User Permission

Posted on 2004-04-26
1
584 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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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…
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.

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now