SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054
Rep:
CHMOD now perms for nothing
I was workin as root for so many days and as everyone told me not to use root I decide d to make a new user. But I couldn't play my mp3s as permission denied.
So i went into the dir and did
chmod a=rw -R *
now it turns out I have access to nothin even ls gives permission denied even though I am on su. Apart from reinstalling slackware what else can I do?
You took out execute permissions from files. You can change the permission by mounting the partition with your Slackware CD, but it will take you a lot to restore the permissions manually. Search in this forum, i remember seeing a nice script to restore the permissions using MANIFEST from CD.
Well to do it manually, go back to the folders that you messed up lol
Code:
chmod -R 0755 folder
chown -R root:users folder
This makes all the files and folders accessible.
The second adds ownership for the users group so that any other users can view/play only.
Now if you're like me and hate seeing green .mp3s do this
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054
Original Poster
Rep:
hey Mr-C,
Your reply was a little late, I reinstalled Slackware before your reply. But tell me how would chmod work if I have removed all executable permissions?
BTW, I messed up the new installed too. http://www.linuxquestions.org/questi...28#post2467228
I guess I will have to format and reinstall.
The syntax seems fine, it should work. Try removing the 2>/dev/null part (keep the ; sign, it's important there), it sends the error messages to /dev/null and maybe you are missing something
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.