Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 549  / 2 Years ago, sun, march 27, 2022, 10:43:31

Please, i am using Ubuntu 11.10 and I made a mistake in system directories, changed permissions of all content to 777. I was trying to correct some files, but i cant fix all directories and files. Can I return to default permissions??



Thanks.


More From » 11.10

 Answers
4
We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.


fdisk, format, reinstall, doo dah, doo dah. i.e.



root@loki:~# find /etc/ -type f -exec ls -al {} ; | awk '{print $1}' | sort | uniq
-r--r-----
-rw-------
-rw-r-----
-rw-r--r--
-rw-rw-r--
-rwxr-xr-x
root@loki:~# find /etc/ -type d -exec ls -al {} ; | awk '{print $1}' | sort | uniq
drwx------
drwxr-s---
drwxr-xr-x
drwx--x---
lrwxrwxrwx
-r--r-----
-rw-------
-rw-r-----
-rw-r--r--
-rw-rw-r--
-rwxr-xr-x


some blanket chmod'ing and chowning in /etc is not going to fix this. you've made a proper mess of things, and a reinstall is the quickest and cleanest way to fix it RIGHT. any thing else, short of restoring content or images from backups is both a waste of time and incomplete.



chalk it up to experience (i've certainly hosed many an install learning), and move forward.


[#39641] Tuesday, March 29, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
hreadsoplet

Total Points: 220
Total Questions: 108
Total Answers: 105

Location: Serbia
Member since Fri, Jun 3, 2022
2 Years ago
;