Solved

linux how to change rights on a folder

Posted on 2014-02-04
1
783 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
[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 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 39833077
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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 …
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
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…
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.:

734 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