Score:0

How to fix admin account file permissions after I deleted and restored it?

iq flag

I deleted my administrator account and restored it using an answer I found from this post (link below).

I accidentally deleted administrator account and the other accounts are asking root password

So everything got restored...but I must have done something wrong because I got both accounts back but my original admin account had a new user ID and belonged to the group of my second one, which had the ID I had before.

Can I fix this by changing file permissions for the whole / file system?

And if so what are the default permissions? I don't wanna mess anything up...again.

Score:1
cn flag

You can change the permissions of the files

 chown -R user:group /path_directory

I suggest you, if there is only change in user ID then change the user ID of your new admin account to the old id:

usermod --uid [new UID for the user account]  USERNAME
Yar Pirates avatar
iq flag
chown worked for me for the file permissions, but I was unable to change the uid because it all ready existed, but this seems to have solved my main issue.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.