We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now

x

Folder issue in CentOS

Medium Priority
186 Views
Last Modified: 2019-09-17
Hi,
1. How to resolve issue below?

[code][root@28-218-217-172-on-nets home]# chown -R smb01 ~/home/share
chown: cannot access ‘/root/home/share’: No such file or directory
[root@28-218-217-172-on-nets home]#

Open in new window

[/code]
I want to grant write permission to user smb01.

2. Is "ls -l" enough to list out all rights of user smb01 on folder /home/share? Is there any other command?
Comment
Watch Question

Nick UpsonPrincipal Operations Engineer
CERTIFIED EXPERT

Commented:
regardless of how good an idea this is, your problem is "chown -R smb01 ~/home/share" should be "chown -R smb01 /home/share", the "~" means my home directory, sh you were trying to change /root/home/share as it says in the error message

to add write permission instead of chown (which changes ownership) use chmod
Peter ChanProblem resolver

Author

Commented:
Thanks. Is it enough to the following? What is ACL?

-Q-
>> So then post the permissions of that directory, along with the relevant ACL's.

Here is what I've got
[root@28-218-217-172-on-nets home]# ls -l
total 4
drwxrwxrwx.  2 smb01 smb01   40 Sep  7 23:20 share
drwx------. 15 smb01 smb01 4096 Sep 13 15:30 smb01
-UQ-
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
ACL access control list

Get used to including -h whenever you do chmod, chown with recursive application of changes
Deals with avoiding making changes if there is a symbolic link.

Getfacl/setfacl are an enhanced access control list
Chown, chmod have a single control..

Getfacl, setfacl can add additional rights, ..
Fractional CTO
CERTIFIED EXPERT
Distinguished Expert 2019
Commented:
How to show ACL...

net16 # getfacl /home
getfacl: Removing leading '/' from absolute path names
# file: home
# owner: root
# group: root
user::rwx
group::r-x
other::r-x

Open in new window

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
David FavorFractional CTO
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
Glad you found a solution!
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.