Find the answer to your Linux question:
Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 25
Su gives me root powers, yes, but inside my home folder. This means i can't read etc/apt/sources.list, i only can in my normal account, so then its read only. Also, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Just Joined!
    Join Date
    Mar 2012
    Location
    Halifax Nova Scotia Canada
    Posts
    72

    Su gives me root powers, yes, but inside my home folder. This means i can't read etc/apt/sources.list, i only can in my normal account, so then its read only. Also, when ever i sudo from my normal account i get the message that i'm not on the sudoers list. If i can't be root, i can't change my sources.list. Yet, if i cannot sudo, i can't set root

  2. #12
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,638
    Quote Originally Posted by JLloyd137 View Post
    Su gives me root powers, yes, but inside my home folder. This means i can't read etc/apt/sources.list, i only can in my normal account, so then its read only. Also, when ever i sudo from my normal account i get the message that i'm not on the sudoers list. If i can't be root, i can't change my sources.list. Yet, if i cannot sudo, i can't set root
    Code:
    su
    cd /etc/apt
    nano sources.list
    Enter the root password after su and replace nano with the editor of your choice
    "I used to be with it, then they changed what it was.
    Now what was it isn't it, and what is it is weird and scary to me.
    It'll happen to you too."

    Grandpa Simpson



    The Fifth Continent

  3. #13
    Just Joined!
    Join Date
    Mar 2012
    Location
    Halifax Nova Scotia Canada
    Posts
    72
    jlloyd13@A880GZ:~$ su
    Password:
    root@A880GZ:/home/jlloyd13# cp /etc/apt
    cp: missing destination file operand after `/etc/apt'
    Try `cp --help' for more information.
    root@A880GZ:/home/jlloyd13#

    also look at a880gz@root. its in my home folder! nogoing to etc/apt from there. also, how can I add my self to the sudoers list? that would take care of everything yes?

  4. $spacer_open
    $spacer_close
  5. #14
    Just Joined!
    Join Date
    Mar 2012
    Location
    Halifax Nova Scotia Canada
    Posts
    72
    ok i was able to add myself to the sudoers list but no matter what I do, sudo ALWAYS refuses to go out side my home folder

    jlloyd13@A880GZ:~$ su
    Password:
    root@A880GZ:/home/jlloyd13# visudo
    root@A880GZ:/home/jlloyd13# sudo etc/apt/sources.list
    sudo: etc/apt/sources.list: command not found
    root@A880GZ:/home/jlloyd13# sudo gedit etc/apt/sources.list
    root@A880GZ:/home/jlloyd13#



    this open opens a new file inside /home/jlloyd how come?

  6. #15
    Just Joined!
    Join Date
    Mar 2012
    Location
    Halifax Nova Scotia Canada
    Posts
    72
    and!!! even after setting the root password I still can not log in as root

  7. #16
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,638
    Quote Originally Posted by JLloyd137 View Post
    ok i was able to add myself to the sudoers list but no matter what I do, sudo ALWAYS refuses to go out side my home folder

    jlloyd13@A880GZ:~$ su
    Password:
    root@A880GZ:/home/jlloyd13# visudo
    root@A880GZ:/home/jlloyd13# sudo etc/apt/sources.list
    sudo: etc/apt/sources.list: command not found
    root@A880GZ:/home/jlloyd13# sudo gedit etc/apt/sources.list
    root@A880GZ:/home/jlloyd13#



    this open opens a new file inside /home/jlloyd how come?
    Code:
    sudo gedit etc/apt/sources.list
    should be
    Code:
     sudo gedit /etc/apt/sources.list
    without that leading / you will start from where you are; with it the path starts from the / directory. The same applies with su and any user.
    "I used to be with it, then they changed what it was.
    Now what was it isn't it, and what is it is weird and scary to me.
    It'll happen to you too."

    Grandpa Simpson



    The Fifth Continent

  8. #17
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,638
    Quote Originally Posted by JLloyd137 View Post
    and!!! even after setting the root password I still can not log in as root
    Allowing root logins is a very bad idea imo.
    "I used to be with it, then they changed what it was.
    Now what was it isn't it, and what is it is weird and scary to me.
    It'll happen to you too."

    Grandpa Simpson



    The Fifth Continent

  9. #18
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,638
    Quote Originally Posted by JLloyd137 View Post
    jlloyd13@A880GZ:~$ su
    Password:
    root@A880GZ:/home/jlloyd13# cp /etc/apt
    cp: missing destination file operand after `/etc/apt'
    Try `cp --help' for more information.
    root@A880GZ:/home/jlloyd13#

    also look at a880gz@root. its in my home folder! nogoing to etc/apt from there. also, how can I add my self to the sudoers list? that would take care of everything yes?
    cd not cp

    and that answer wasn't long enough for the forum software
    "I used to be with it, then they changed what it was.
    Now what was it isn't it, and what is it is weird and scary to me.
    It'll happen to you too."

    Grandpa Simpson



    The Fifth Continent

  10. #19
    Just Joined!
    Join Date
    Mar 2012
    Location
    Halifax Nova Scotia Canada
    Posts
    72
    doh! (headslap) thanks man.

  11. #20
    Just Joined!
    Join Date
    Mar 2012
    Location
    Halifax Nova Scotia Canada
    Posts
    72
    jlloyd13@A880GZ:~$ sudo gedit /etc/apt/sources.list
    [sudo] password for jlloyd13:
    jlloyd13@A880GZ:~$ sudp apt-get update
    bash: sudp: command not found
    jlloyd13@A880GZ:~$ sudo apt-get update
    E: Malformed line 4 in source list /etc/apt/sources.list (dist parse)
    E: The list of sources could not be read.
    jlloyd13@A880GZ:~$ sudo gedit /etc/apt/sources.list
    [sudo] password for jlloyd13:
    jlloyd13@A880GZ:~$ sudo apt-get update
    Get:1 Index of / stable Release.gpg [1,672 B]
    Ign Index of /debian stable/main Translation-en
    Ign Index of /debian stable/main Translation-en_CA
    Get:2 Index of / squeeze-updates Release.gpg [836 B]
    Ign Index of /debian squeeze-updates/main Translation-en
    Ign Index of /debian squeeze-updates/main Translation-en_CA
    Get:3 Index of / stable Release [111 kB]
    Get:4 Index of / squeeze-updates Release [113 kB]
    Get:5 Index of / stable/main Sources [4,541 kB]
    Get:6 Index of / squeeze-updates/main Sources [4,656 B]
    Get:7 Index of / squeeze-updates/main amd64 Packages [13.7 kB]
    Get:8 Index of / stable/main amd64 Packages [6,542 kB]
    Fetched 11.3 MB in 14s (760 kB/s)
    Reading package lists... Done
    jlloyd13@A880GZ:~$ sudo apt-get install virtualbox
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Package virtualbox is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    E: Package 'virtualbox' has no installation candidate
    jlloyd13@A880GZ:~$ sudo apt-get upgrade
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    jlloyd13@A880GZ:~$ sudo apt-get install conky
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Unable to locate package conky
    jlloyd13@A880GZ:~$


    what do you make of this?

Page 2 of 3 FirstFirst 1 2 3 LastLast

Posting Permissions

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