This post is more than 5 years old

10 Posts

1691

October 1st, 2019 13:00

How Can you Remove Everyone in the CLI

I am trying to remove the Everyone group entirely. I can do a chmod +a to add, but whenever I do the -a all it does is remove the rights whereas I want to remove it in its entirety. I seen the chmod -D option, but I don't want to wipe out everything.

drwxrwx--- + 5 root wheel 64 Sep 17 08:37 app
OWNER: user:root
GROUP: group:wheel
0: user:root allow dir_gen_read,dir_gen_write,dir_gen_execute,std_write_dac,delete_child
1: group:wheel allow dir_gen_read,dir_gen_write,dir_gen_execute,delete_child
2: group:Administrators allow dir_gen_all,object_inherit,container_inherit
3: everyone allow std_read_dac,std_synchronize,dir_read_attr

1 Rookie

 • 

9 Posts

October 2nd, 2019 05:00

Delete the entry by index:

chmod -a# 3 app  

(no space between a and #, but there is a space between # and 3) 

 

hth

-- Peter

 

10 Posts

October 2nd, 2019 06:00

I will give that a shot today.

Curious...what is the # for?

Thank you!!

4 Operator

 • 

1.2K Posts

October 2nd, 2019 12:00

The # indicates that an item from the ACL is picked by its index number, which appears as the next argument.

10 Posts

October 3rd, 2019 07:00

Good deal...thanks for the info!

No Events found!

Top