• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3210
  • Last Modified:

chmod vs setfacl


I am learning Suse and I can not figure out the deal with setfacl.  

Is setfacl just chmod  ?  
0
bitmechanic
Asked:
bitmechanic
  • 2
1 Solution
 
xDamoxCommented:
Hi,

setfacl
This  utility sets Access Control Lists (ACLs) of files and directories.  On the command line, a sequence
of commands is followed by a sequence of files (which in turn can be followed by another sequence of com-
mands, ...).

chmod
This  manual  page  documents the GNU version of chmod.  chmod changes the permissions of each given file
according to mode, which can be either a symbolic representation of changes to make, or an  octal  number
representing the bit pattern for the new permissions.


Didi you noticed that setfacl set an access control list and chmod just changes the permission

0
 
bitmechanicAuthor Commented:

I guess what the problems is that I do not seem to under stand acls in linux.  

Can someone assist me ?

Points added :)
0
 
xDamoxCommented:
Hi,

I had a closer look at setfacl and it more or less abit like chmod accept it also combines the chown which is owner.
with chmod you cant set the owner of the file you can only set the permissions whereas setfacl can set both the user and the permissions for that user.

chmod example:

chmod 755 public_html

This means that the owner who created the file has read,write and execute and the group as read and execute and everyone else
has read and execute.

setfacl example:

setfacl -m user:damian:rw- public_html

This hower sets the user damian has read and write access to the public_html even if he didnt create the file.
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now