LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-26-2008, 06:14 AM   #1
Coffee1970
LQ Newbie
 
Registered: Jan 2008
Posts: 23

Rep: Reputation: 15
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!!!!

If anyone can help, it would be appreciated!

Thank you,
Brian.
 
Old 01-26-2008, 07:29 AM   #2
budword
Member
 
Registered: Apr 2003
Location: Wisconsin
Distribution: Switched to regualr Ubuntu, because I don't like KDE4, at all. Looks like vista on crack.....
Posts: 675

Rep: Reputation: 31
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...

David

Last edited by budword; 01-26-2008 at 07:36 AM.
 
Old 01-27-2008, 06:59 PM   #3
Coffee1970
LQ Newbie
 
Registered: Jan 2008
Posts: 23

Original Poster
Rep: Reputation: 15
Well, I do not know what I did...but....

I typed 'chmod 755 /usr

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!

Thanks,
Brian.
 
Old 01-27-2008, 09:35 PM   #4
roy_lt_69
Member
 
Registered: Aug 2006
Location: Vancouver, BC, Canada
Distribution: Slackware, Bodhi, Mint-xfce
Posts: 183

Rep: Reputation: 21
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.
 
Old 01-28-2008, 06:08 AM   #5
Coffee1970
LQ Newbie
 
Registered: Jan 2008
Posts: 23

Original Poster
Rep: Reputation: 15
Midnight Commander might help me understand things a little easier, until I get into all this more....

All I wanted to do was copy a file for MAME from my desktop, where I downloaded it...to the games folder that falls under the USR folder.

That's where the emulator SDLMame was looking for it's roms.

On the desktop.....trackfld.zip
This is the game Track and Field in a zip file for use with MAME.

I want to copy it into the /usr/local/share/games folder.

Here's a bit of that ls -l read out.........

All the folders (directories?) have the following....

drwxr-xr-x 2 then the folder name

EXCEPT....

lrwxrwxrwx 1 Example -> /usr/share/example -content

So you can see that the USR and its folders are a little different than the others.
Probably something silly that I did in the beginning?

Thank you,
Brian.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting Persmissions trocker767 Linux - Newbie 5 11-02-2005 05:23 AM
Ugh, so frustrated with this... RoaCh Of DisCor Linux - Software 8 04-01-2005 01:47 PM
Persmissions changing on root directories? granatica Linux - Security 2 06-14-2004 02:52 PM
Getting persmissions to stick dictatorofgoats Linux - General 2 10-02-2002 06:11 AM
UGH - RH 7.1 screwed up? Ronin Linux - General 3 05-07-2001 04:23 PM


All times are GMT -5. The time now is 10:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration