Solved

linux how to change rights on a folder

Posted on 2014-02-04
1
767 Views
Last Modified: 2014-02-04
I have this folder

 ls -ld sap

drwxr-xr-x 10 root sapsys 4096 Jan  9 23:06 sap

I need to change rights to pipadm,sapsys  ( get rid of root )

Do i need to use chmod command ? Any help would be appreciated
0
Comment
Question by:c_hockland
1 Comment
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
Comment Utility
As root:

chown pipadm:sapsys sap

If you want to change the owner of everything below the "sap" subdirectory, too, then use the recursive flag of "chown" ("-R"):

chown -R pipadm:sapsys sap

"chown" means "change owner". The value on the left of the colon designates the new owner, the value on the right designates the new group. Either one can be omitted, if no change is desired or required. To change only the group its name must thus be preceeded by the colon.

"chmod" , on the other hand, means "change modes" and is used to change permissions (read/write/execute for owner, group, others).
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
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…
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.

763 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

6 Experts available now in Live!

Get 1:1 Help Now