Permission mix-up on Mint
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
So recently I accidentally started changing all the permissions in root to my unprivileged account :(.
It happened because I was switching between users and shells and the directory changed to / without me noticing.
Luckily I had -c enabled so I realised there was something wrong quite quickly(just after the home dir).
I then ran chown root:root -R (all files owned by me in /)
Now I'm having problems with xscreensaver and su'ing reurns failed auth. I can still use sudo though.
Is there any maybe a list of permissions somewhere?
I'm running the latest Mint XFCE.
permissions screensaver chown xscreensaver
migrated from askubuntu.com Nov 24 '15 at 22:01
This question came from our site for Ubuntu users and developers.
 |Â
show 3 more comments
up vote
1
down vote
favorite
So recently I accidentally started changing all the permissions in root to my unprivileged account :(.
It happened because I was switching between users and shells and the directory changed to / without me noticing.
Luckily I had -c enabled so I realised there was something wrong quite quickly(just after the home dir).
I then ran chown root:root -R (all files owned by me in /)
Now I'm having problems with xscreensaver and su'ing reurns failed auth. I can still use sudo though.
Is there any maybe a list of permissions somewhere?
I'm running the latest Mint XFCE.
permissions screensaver chown xscreensaver
migrated from askubuntu.com Nov 24 '15 at 22:01
This question came from our site for Ubuntu users and developers.
1
And you are running Mint or Ubuntu?
â user103789
Nov 24 '15 at 20:46
@ParanoidPanda Mint. I updated the question
â Wilhelm Erasmus
Nov 24 '15 at 21:56
Well , since you recursively chowned everything, you also have chowned everything in your home . . . .Dochown -R yourUsername:yourUsername /home/yourUsername
to get your stuff back to your ownership
â Sergiy Kolodyazhnyy
Nov 24 '15 at 22:07
@Serg The problem is that most of the root filesystem was owned by me instead of root. I was attempting to dochown -R yourUsername:yourUsername ./
but I was in / not ~
â Wilhelm Erasmus
Nov 24 '15 at 22:14
Oh, I see. Changing ownership of everything on the filesystem back to root user will be the easiest next to reinstalling. But there are many direcotries in files , such as /etc/shadow or /etc/mtab.fuselock that have different group ownership, so if you chown everything to root recursivelly you still have to go back and fix many other files.
â Sergiy Kolodyazhnyy
Nov 24 '15 at 22:21
 |Â
show 3 more comments
up vote
1
down vote
favorite
up vote
1
down vote
favorite
So recently I accidentally started changing all the permissions in root to my unprivileged account :(.
It happened because I was switching between users and shells and the directory changed to / without me noticing.
Luckily I had -c enabled so I realised there was something wrong quite quickly(just after the home dir).
I then ran chown root:root -R (all files owned by me in /)
Now I'm having problems with xscreensaver and su'ing reurns failed auth. I can still use sudo though.
Is there any maybe a list of permissions somewhere?
I'm running the latest Mint XFCE.
permissions screensaver chown xscreensaver
So recently I accidentally started changing all the permissions in root to my unprivileged account :(.
It happened because I was switching between users and shells and the directory changed to / without me noticing.
Luckily I had -c enabled so I realised there was something wrong quite quickly(just after the home dir).
I then ran chown root:root -R (all files owned by me in /)
Now I'm having problems with xscreensaver and su'ing reurns failed auth. I can still use sudo though.
Is there any maybe a list of permissions somewhere?
I'm running the latest Mint XFCE.
permissions screensaver chown xscreensaver
permissions screensaver chown xscreensaver
edited 35 mins ago
Rui F Ribeiro
37.3k1374118
37.3k1374118
asked Nov 24 '15 at 20:37
Wilhelm Erasmus
200112
200112
migrated from askubuntu.com Nov 24 '15 at 22:01
This question came from our site for Ubuntu users and developers.
migrated from askubuntu.com Nov 24 '15 at 22:01
This question came from our site for Ubuntu users and developers.
1
And you are running Mint or Ubuntu?
â user103789
Nov 24 '15 at 20:46
@ParanoidPanda Mint. I updated the question
â Wilhelm Erasmus
Nov 24 '15 at 21:56
Well , since you recursively chowned everything, you also have chowned everything in your home . . . .Dochown -R yourUsername:yourUsername /home/yourUsername
to get your stuff back to your ownership
â Sergiy Kolodyazhnyy
Nov 24 '15 at 22:07
@Serg The problem is that most of the root filesystem was owned by me instead of root. I was attempting to dochown -R yourUsername:yourUsername ./
but I was in / not ~
â Wilhelm Erasmus
Nov 24 '15 at 22:14
Oh, I see. Changing ownership of everything on the filesystem back to root user will be the easiest next to reinstalling. But there are many direcotries in files , such as /etc/shadow or /etc/mtab.fuselock that have different group ownership, so if you chown everything to root recursivelly you still have to go back and fix many other files.
â Sergiy Kolodyazhnyy
Nov 24 '15 at 22:21
 |Â
show 3 more comments
1
And you are running Mint or Ubuntu?
â user103789
Nov 24 '15 at 20:46
@ParanoidPanda Mint. I updated the question
â Wilhelm Erasmus
Nov 24 '15 at 21:56
Well , since you recursively chowned everything, you also have chowned everything in your home . . . .Dochown -R yourUsername:yourUsername /home/yourUsername
to get your stuff back to your ownership
â Sergiy Kolodyazhnyy
Nov 24 '15 at 22:07
@Serg The problem is that most of the root filesystem was owned by me instead of root. I was attempting to dochown -R yourUsername:yourUsername ./
but I was in / not ~
â Wilhelm Erasmus
Nov 24 '15 at 22:14
Oh, I see. Changing ownership of everything on the filesystem back to root user will be the easiest next to reinstalling. But there are many direcotries in files , such as /etc/shadow or /etc/mtab.fuselock that have different group ownership, so if you chown everything to root recursivelly you still have to go back and fix many other files.
â Sergiy Kolodyazhnyy
Nov 24 '15 at 22:21
1
1
And you are running Mint or Ubuntu?
â user103789
Nov 24 '15 at 20:46
And you are running Mint or Ubuntu?
â user103789
Nov 24 '15 at 20:46
@ParanoidPanda Mint. I updated the question
â Wilhelm Erasmus
Nov 24 '15 at 21:56
@ParanoidPanda Mint. I updated the question
â Wilhelm Erasmus
Nov 24 '15 at 21:56
Well , since you recursively chowned everything, you also have chowned everything in your home . . . .Do
chown -R yourUsername:yourUsername /home/yourUsername
to get your stuff back to your ownershipâ Sergiy Kolodyazhnyy
Nov 24 '15 at 22:07
Well , since you recursively chowned everything, you also have chowned everything in your home . . . .Do
chown -R yourUsername:yourUsername /home/yourUsername
to get your stuff back to your ownershipâ Sergiy Kolodyazhnyy
Nov 24 '15 at 22:07
@Serg The problem is that most of the root filesystem was owned by me instead of root. I was attempting to do
chown -R yourUsername:yourUsername ./
but I was in / not ~â Wilhelm Erasmus
Nov 24 '15 at 22:14
@Serg The problem is that most of the root filesystem was owned by me instead of root. I was attempting to do
chown -R yourUsername:yourUsername ./
but I was in / not ~â Wilhelm Erasmus
Nov 24 '15 at 22:14
Oh, I see. Changing ownership of everything on the filesystem back to root user will be the easiest next to reinstalling. But there are many direcotries in files , such as /etc/shadow or /etc/mtab.fuselock that have different group ownership, so if you chown everything to root recursivelly you still have to go back and fix many other files.
â Sergiy Kolodyazhnyy
Nov 24 '15 at 22:21
Oh, I see. Changing ownership of everything on the filesystem back to root user will be the easiest next to reinstalling. But there are many direcotries in files , such as /etc/shadow or /etc/mtab.fuselock that have different group ownership, so if you chown everything to root recursivelly you still have to go back and fix many other files.
â Sergiy Kolodyazhnyy
Nov 24 '15 at 22:21
 |Â
show 3 more comments
2 Answers
2
active
oldest
votes
up vote
0
down vote
This is pretty much an "+++ Out of Cheese Error. Redo From Start. +++" situation.
Lots of files down in the guts run as different users/groups and while most things can live as "root:root" if this is going to be a long running system you're better off backing up /home and repaving.
Alternatively find another computer, install virtual box, install mint, and then run:
find ./ | xargs ls -lth | awk ' print $1"t"$3":"$4" "$NF ' > /var/tmp/perms.
You should then be able to copy perms over to your mint computer, and write a script that reads that file and sets the right user/group ownership.
Actually, that would be a good penance as well as a useful technical exercise. :)
add a comment |Â
up vote
0
down vote
I found the simplest method of fixing all the permissions.
https://serverfault.com/a/117149/191095
getfacl -R / > /root/perms.acl
setfacl --restore=/root/perms.acl
It works perfectly. Now my xscreensaver and logging in as root work again :-)
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
This is pretty much an "+++ Out of Cheese Error. Redo From Start. +++" situation.
Lots of files down in the guts run as different users/groups and while most things can live as "root:root" if this is going to be a long running system you're better off backing up /home and repaving.
Alternatively find another computer, install virtual box, install mint, and then run:
find ./ | xargs ls -lth | awk ' print $1"t"$3":"$4" "$NF ' > /var/tmp/perms.
You should then be able to copy perms over to your mint computer, and write a script that reads that file and sets the right user/group ownership.
Actually, that would be a good penance as well as a useful technical exercise. :)
add a comment |Â
up vote
0
down vote
This is pretty much an "+++ Out of Cheese Error. Redo From Start. +++" situation.
Lots of files down in the guts run as different users/groups and while most things can live as "root:root" if this is going to be a long running system you're better off backing up /home and repaving.
Alternatively find another computer, install virtual box, install mint, and then run:
find ./ | xargs ls -lth | awk ' print $1"t"$3":"$4" "$NF ' > /var/tmp/perms.
You should then be able to copy perms over to your mint computer, and write a script that reads that file and sets the right user/group ownership.
Actually, that would be a good penance as well as a useful technical exercise. :)
add a comment |Â
up vote
0
down vote
up vote
0
down vote
This is pretty much an "+++ Out of Cheese Error. Redo From Start. +++" situation.
Lots of files down in the guts run as different users/groups and while most things can live as "root:root" if this is going to be a long running system you're better off backing up /home and repaving.
Alternatively find another computer, install virtual box, install mint, and then run:
find ./ | xargs ls -lth | awk ' print $1"t"$3":"$4" "$NF ' > /var/tmp/perms.
You should then be able to copy perms over to your mint computer, and write a script that reads that file and sets the right user/group ownership.
Actually, that would be a good penance as well as a useful technical exercise. :)
This is pretty much an "+++ Out of Cheese Error. Redo From Start. +++" situation.
Lots of files down in the guts run as different users/groups and while most things can live as "root:root" if this is going to be a long running system you're better off backing up /home and repaving.
Alternatively find another computer, install virtual box, install mint, and then run:
find ./ | xargs ls -lth | awk ' print $1"t"$3":"$4" "$NF ' > /var/tmp/perms.
You should then be able to copy perms over to your mint computer, and write a script that reads that file and sets the right user/group ownership.
Actually, that would be a good penance as well as a useful technical exercise. :)
answered Nov 25 '15 at 0:37
Petro
39115
39115
add a comment |Â
add a comment |Â
up vote
0
down vote
I found the simplest method of fixing all the permissions.
https://serverfault.com/a/117149/191095
getfacl -R / > /root/perms.acl
setfacl --restore=/root/perms.acl
It works perfectly. Now my xscreensaver and logging in as root work again :-)
add a comment |Â
up vote
0
down vote
I found the simplest method of fixing all the permissions.
https://serverfault.com/a/117149/191095
getfacl -R / > /root/perms.acl
setfacl --restore=/root/perms.acl
It works perfectly. Now my xscreensaver and logging in as root work again :-)
add a comment |Â
up vote
0
down vote
up vote
0
down vote
I found the simplest method of fixing all the permissions.
https://serverfault.com/a/117149/191095
getfacl -R / > /root/perms.acl
setfacl --restore=/root/perms.acl
It works perfectly. Now my xscreensaver and logging in as root work again :-)
I found the simplest method of fixing all the permissions.
https://serverfault.com/a/117149/191095
getfacl -R / > /root/perms.acl
setfacl --restore=/root/perms.acl
It works perfectly. Now my xscreensaver and logging in as root work again :-)
edited Apr 13 '17 at 12:13
Communityâ¦
1
1
answered Nov 25 '15 at 22:19
Wilhelm Erasmus
200112
200112
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f245263%2fpermission-mix-up-on-mint%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
And you are running Mint or Ubuntu?
â user103789
Nov 24 '15 at 20:46
@ParanoidPanda Mint. I updated the question
â Wilhelm Erasmus
Nov 24 '15 at 21:56
Well , since you recursively chowned everything, you also have chowned everything in your home . . . .Do
chown -R yourUsername:yourUsername /home/yourUsername
to get your stuff back to your ownershipâ Sergiy Kolodyazhnyy
Nov 24 '15 at 22:07
@Serg The problem is that most of the root filesystem was owned by me instead of root. I was attempting to do
chown -R yourUsername:yourUsername ./
but I was in / not ~â Wilhelm Erasmus
Nov 24 '15 at 22:14
Oh, I see. Changing ownership of everything on the filesystem back to root user will be the easiest next to reinstalling. But there are many direcotries in files , such as /etc/shadow or /etc/mtab.fuselock that have different group ownership, so if you chown everything to root recursivelly you still have to go back and fix many other files.
â Sergiy Kolodyazhnyy
Nov 24 '15 at 22:21