directory permissions incorrectly set
My linux knowledge will be apparent from this post. I ran a chmod incorrectly on the / and /etc directories. I ran the follwing
chmod 700 / chmod 700 /etc of course the result of these actions were severe. I rebooted into text mode and ran chmod 777 / chmod 777 /etc so that I could start X and get things working. Now I would like to know which directories I need to have 777 access to and which need lower level access for users other than root. Thanks for any help.:Pengy: |
Code:
#!/bin/bash Running it as "/tmp/rpm-perms > /tmp/rpm-perms.log" should give you the log. Check the contents for errors, then running it as "/tmp/rpm-perms|while read perm file; do chmod ${perm} ${file}; done" should restore all permissions. If you want to test it, you can also supply a packagename: "/tmp/rpm-perms adore" for instance would list the files and filepermissions of the Adore package. |
bad interpreter
I apologize for the questions but I am new to Linux. I made the script in the /tmp folder and made it executable. Then user ./rpm-perms > rpm-perms.log but I got the error [bad interpreter: No such file or directory]. I checked and I have a /bin/bash file. Might I have the wrong version?
|
I apologize for the questions but I am new to Linux.
No need to apologise. Asking questions isn't stupid. NOT asking is. [bad interpreter: No such file or directory] - You can only use "./" syntax when you're in the same dir as the script: cd to /tmp first, else use the full path. |
All times are GMT -5. The time now is 05:00 PM. |