-1
0
I used this code on an app:
chmod 600 /Applications/Freedom.app ; chown 'whoami':staff /Applications/Freedom.app
Does anyone know how to undo this?
-1
0
I used this code on an app:
chmod 600 /Applications/Freedom.app ; chown 'whoami':staff /Applications/Freedom.app
Does anyone know how to undo this?
0
To undo the chmod use :
sudo chown -R alexandertollman:alexandertollman /Applications/Freedom.app
To set back to permission level 755 use :
sudo chmod -R 755 /Applications/Freedom.app
The whoami
only prints the username associated with the current effective user ID.
Why did you make it recursive? You changed the permissions on a single file, so -R, is unnecessary – Ramhound – 2017-11-16T02:49:44.103
-R is for referencing the file – Vedant – 2017-11-16T02:51:54.127
can someone explain what -R does? the only thing i know about it is when i looked up changing 'chown', it used -R for changing a group of files, the single file one did not have the -R in it. – TheBelgianWaffl _ Gaming – 2017-11-16T02:53:32.943
I already told you what -R does, and it isn’t what you said it was: https://superuser.com/questions/260925/how-can-i-make-chown-work-recursively
– Ramhound – 2017-11-16T02:53:40.457-R is for referencing the file, * is used to use it on all pdfs – Vedant – 2017-11-16T02:55:08.530
https://stackoverflow.com/questions/17629046/linux-chown-r-parameter-what-does-it-mean – Ramhound – 2017-11-16T02:55:53.463
:( i got a downlike on my post is it cause i had no idea what i was doing? – TheBelgianWaffl _ Gaming – 2017-11-16T02:57:27.080
https://refspecs.linuxfoundation.org/LSB_1.3.0/gLSB/gLSB/chmod.html – Vedant – 2017-11-16T02:57:39.247
@Ramhound oh I did not know that, but in pretty sure my answer works – Vedant – 2017-11-16T03:00:02.267
It works on bother Unix and Linux – Vedant – 2017-11-16T03:02:08.203
3-R and —reference is two entirely different things. You shouldn’t take my word for it though, so read the manual, on the command and take your own word for it. Unix.com would agree with me also. – Ramhound – 2017-11-16T03:04:51.640
so i go and log into my root account on my mac. i did look up what the 600 means, but does that help me with what previously was the permissions? or can i just set it to chmod 777(which means everyone has all permissions)as far as i know? – TheBelgianWaffl _ Gaming – 2017-11-16T02:44:37.900