Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 13 of 13
Originally Posted by Daan The "whoami" command is just to check that you have succesfully switched user to root. The output confirmed that you did. When I am root at ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Just Joined!
    Join Date
    Mar 2009
    Posts
    14

    Quote Originally Posted by Daan View Post
    The "whoami" command is just to check that you have succesfully switched user to root. The output confirmed that you did. When I am root at my system, I can edit my /etc/apt/sources.list. You cannot, that is why I want to have a look at the permissions of that file. Therefore, the second command. But I think you have forgotten the "-l" (l for "long") there. When I isue "ls -l /etc/apt/sources.*" I get a long list of all files in the directory /etc/apt/ whose name start with "sources.". Long here means that it gives more info than just the name of the file: also size, time of last change, ownership, and what we are partivulary interested in here: permissions.

    Try again please.

    You dont need to save these commands. You could put them in text file and then run that text file (a "script") instead of each command separatley, but since these are such simple commands, I don't think you need to put them in s script.

    If you meant that you want to copy the commands and output from the terminal you can simply select them with your mouse and copy paste with right clicking, as you would in most graphical user interface programs.
    Many thank yous for your latest response. Very useful information in it.

    I repeated the operation and got

    -rw- r--r-- root root 822 2009-03-22 04:48 /etc/apt/sources.list
    -rw- r--r-- root root -- 0 2009-03-07 04:48 /etc/apt/sources.list~
    -rw- r--r-- root root 822 2009-03-22 04:48 /etc/apt/sources.list.save

  2. #12
    Linux User Daan's Avatar
    Join Date
    Aug 2005
    Location
    The Netherlands
    Posts
    323
    Quote Originally Posted by Sillymoo View Post
    -rw- r--r-- root root 822 2009-03-22 04:48 /etc/apt/sources.list
    -rw- r--r-- root root -- 0 2009-03-07 04:48 /etc/apt/sources.list~
    -rw- r--r-- root root 822 2009-03-22 04:48 /etc/apt/sources.list.save
    Hmm. The first rw for each file indicates that the owner - here that is root - can read and write the file. So doing
    Code:
    # gedit /etc/apt/sources.list
    as root should open up an editor so that you can edit and save the file.

    Before you do, please make a backup of the original

    Code:
    # cp -a /etc/apt/sources.list /etc/apt/sources.list.bak
    Good luck!
    OS's I use: Debian testing, Debian stable, Ubuntu, OpenSuse 12.1, Windows 7, Windows Vista, Windows XP

  3. #13
    Just Joined!
    Join Date
    Mar 2009
    Posts
    14
    Quote Originally Posted by Daan View Post
    Hmm. The first rw for each file indicates that the owner - here that is root - can read and write the file. So doing
    Code:
    # gedit /etc/apt/sources.list
    as root should open up an editor so that you can edit and save the file.

    Before you do, please make a backup of the original

    Code:
    # cp -a /etc/apt/sources.list /etc/apt/sources.list.bak
    Good luck!
    Thanks for that info, Daan.

    The Debian PDF Readers KPDF, XPDF, Evince and KGhost-view are all installed and I've decided I really don't need Adobe Reader after all.

    I shall be making a copy of this page for future reference in case I change my mind.

Page 2 of 2 FirstFirst 1 2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •