Wednesday, March 19, 2014

Change permission for user in Linux

Following set of commands can be used to change the permission of a user.

Change directory
           sujithde@ewaps1:~> cd delight/

Change permission for user oracle
           sujithde@ewaps1:~/delight> setfacl –R -m user:oracle:rwx .

Add user a mask
           sujithde@ewaps1:~/delight> setfacl –R -m mask:rwx .

Note : –R will recursively change permission for sub folders. 

No comments:

Post a Comment