Help....changed persmissions and now I get nothing? Ugh...
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Help....changed persmissions and now I get nothing? Ugh...
Hello and thanks for reading.....
I recently tried to install some games such as MAME and needed to change the permission of the USR folder because I could not copy any roms into the folder...an error came up and said that I did not have permission to do so.
I went into termninal and became the root (Ubuntu), and typed--
chmod /usr -rwxrwxrwx...or something like that..I know, I know...what the heck am I doing?
Well, I guessed it worked because all the icons changed into something else and the system went out.
Tried to restart ( and shut off, then on )...only thing that comes up is a box with a big red circle and a bunch of little squares...no letters, just little symbols that I cannot read.
There is a box you can click, but it has squares too, no letters. Click on it, and the same thing happens over and over...nothing!
Can this be fixed or do I need to re-install everything.
And I just got all those neat 3-D effects working!!! AARRGGHHH!!!!
Distribution: Switched to regualr Ubuntu, because I don't like KDE4, at all. Looks like vista on crack.....
Posts: 675
Rep:
Should be fixable....go to / .. then give us the output for the /usr directory of the command "ls -l"
By the way, changing the permissions of /usr just to copy some files is a very silly thing to do. Just become root, then "cp -v /files/I/need/copied /where/I/want/files/copied/to
And I've never seen permissions changed like that before.....the usual command for that is "chmod 755" or some other number... anyway....let us know...we can change the permissions back to whatever they need to be... also... tell us who the owner and group is from the "ls -l" command.
Anyway...
Good luck and let us know....
David
P.S. Just reread your post...are you saying you don't have a regualr desktop to login to ? Once things stop and you see that box with the little squares, just hit cnt-alt-F3 and log in there, then use that command line to fix your problem. If you can't even do that much, then you need a live cd distro to edit the permissions of that box. It could be root needs to be the owner of /usr or you won't be able to log in, I'm not sure. Anyway...let us know and we'll get it figured out...
I then rebooted and everything was fine? I guess so...
I still could not figure out how to copy a file into the /usr folder, or one of it's sub-folders???
I went into Terminal.
Typed su, then used password...now I am the root user...so I take it, it says so...
Then tried the cp command, but no matter what I did, nothing worked correctly.
cp myfile /usr
or other variations on this....nothing worked. Persmission Denied.
Can I just log in somehow as the root user, and move a bunch of files where I want them to go?
In other words....the emulator SDLMame, the arcade emulator, want to look for Roms in the /usr/local/share/games folder. But I cannot put anything there because I have no permission, or I am not the owner, and all that other good stuff....arrghh!!
I do not quite get all this just yet....would like to though!
We need to see the permission for /usr, so do a ls -l in / (ie root directory), and post it here.
Also what are you trying to copy?
Could you be trying to overwrite an existing file/directory?
Finally, have you considered using a program like Midnight Commander (mc) to do the copying and setting of file permissions?
It might be easier for Linux newbies.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.