Solved

linux how to change rights on a folder

Posted on 2014-02-04
1
789 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

Congratulations! You’re Certified – Now What?

Starting a new career can be overwhelming. Becoming certified in your field of expertise is a great start, but where do you go from here?  Here are some tips to help you on your career journey.

Question has a verified solution.

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

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

628 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