LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-14-2005, 05:27 AM   #1
yatesl
LQ Newbie
 
Registered: May 2005
Location: Manchester, England
Distribution: Ubuntu
Posts: 2

Rep: Reputation: 0
How do I get permissions?


Hi everyone. I installed Linux this morning (at 3 AM), and I'm looking at some of the Open Source games (such as those Doom games), so I'm a bit of a .

However, when I try to move the files into the appropriate folders in / (such as moving prboom into /usr/games), I get an error message saying I do not have permission.

Although this is a Family PC, I am the main user of the computer, and I installed Linux, and registered it to me. Therefore, shouldn't I have all the rights? Can someone please help!

Regards,
Liam.

Note: Here is a print screen of the message.
http://img148.echo.cx/img148/4488/error0vz.png

Last edited by yatesl; 05-14-2005 at 05:36 AM.
 
Old 05-14-2005, 07:11 AM   #2
DiBosco
Member
 
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mageia
Posts: 813

Rep: Reputation: 40
Open a console window and do an

ls -all

To see the permissions for the directory. You'll seomthing like:

drwxrwxr-x 3 trebor trebor 4096 Mar 5 20:26 .thunderbird/

Make sure that where it says trebor trebor on mine it doesn't say root root on yours. If it does, you will have to change permissions by logging on as root and changing permissions. You can do it as

chown username

Check the syntax, don't remember exactly off the top of my head.

The first "trebor" will change to your username.

Also, look on the left hand side at:

drwxrwxr-x

IIRC, the d means directory and then the rwx gives read/write/executable status for user/group/everyone

Ensure that the first set is set to rwx by using chmod. Again, look up the syntax to understand it properly.

Hope this helps.

Cheers,

Rob
 
Old 05-14-2005, 07:32 AM   #3
yatesl
LQ Newbie
 
Registered: May 2005
Location: Manchester, England
Distribution: Ubuntu
Posts: 2

Original Poster
Rep: Reputation: 0
chown username doesn't work.
If I do chown liam (I use liam to log on), it says

liam@Home:~$ chown liam
chown: too few arguments
 
Old 05-14-2005, 08:16 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Don't change the permissions on the /usr/games directory. What kind of file do you have?
You will almost never install a program by just copying a file to a location.

If what you downloaded is a package, then you need to use your package system to install the file.
If it is a tarball (ending in .tar.gz) then you should download it into your home directory, untar the archive, and read the README and INSTALL files to learn how to install it.
Most tarballs are installed like this:
tar xvzv packagename.tar.gz # This creates a source directory by the same name (without the extention)
cd packagename
# Now read those two files to find out if there are any special instructions
# ./configure --help may also supply you with options to consider
./configure
make
su
<enter root password>
make install

The last step will copy the files where they need to go.


If on the otherhand, you are simply saving a WAD file, then you can su to root and copy the file:
su
<password>
cp game.wad /usr/local/games/ # I used /usr/local/ because upgrading the distro won't touch it.
exit # stop being root.

It might be better to use the 'sudo' command for this but that takes setting up your /etc/sudoers fille using the 'visudo' program.

I believe that Ubunto is a slackware derivative, so you will want to read your documentation on how to install packages. They are similar to tarballs, but use the proper install tool to install them.
 
Old 05-14-2005, 02:15 PM   #5
DiBosco
Member
 
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mageia
Posts: 813

Rep: Reputation: 40
Sorry, I misread what you were after. I thought you were having problems just coping the installation files to a particular directory. jschiwal is quite right in what he says about installatiion!

btw, chown needs a few paramters after it. Do a bit of reading up about it, either with chown --help or by surfing to find out how to use it. IMHO, it's best to do it that way rather than just be told what to type in a particular instance, as that way you really understand what you're doing.

Cheers,

Rob
 
Old 05-14-2005, 03:38 PM   #6
noxious
Member
 
Registered: May 2004
Location: Ohio, USA
Distribution: LinuxMint Gloria, Ubuntu 9.10
Posts: 299

Rep: Reputation: 30
Applications==>System Tools==>Root Terminal

then type "nautilus", navigate to where you want the file moved TO. While this nautilus window is open, open your home folder and drag/drop the file where you want it to reside.
 
  


Reply



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
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 12:00 PM
permission ... permissions .... permissions alaios Linux - General 1 05-31-2005 04:16 AM
getting a directory's permissions and creating a new one with the same permissions newbie1000101 Programming 1 04-10-2004 12:52 PM
permissions JROCK1980 Linux - Software 6 04-09-2004 04:03 AM
need help with permissions hbbtstar Linux - Newbie 4 10-13-2003 06:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 10:34 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
Open Source Consulting | Domain Registration