Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: how can i get root privledges on my user account without using root login

  1. #1
    Join Date
    Dec 2010
    Location
    Hampshire-UK
    Posts
    122

    Question how can i get root privledges on my user account without using root login

    i am having problems with privileges i have created a new user with my name, but i cant get root privileges on it.
    please help, i need the same privileges as the root profile.

  2. #2

    Default Re: how can i get root privledges on my user account without usingroot login

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    You can use sudo (command line), gnomesu (Gnome) or kdesu (KDE) in order
    to elevate privileges for a purpose. Running with 'root' privileges 24x7
    is a foolish idea but I assume that is not what you are wanting to do but
    rather want to do certain things with elevated privileges (necessary at
    times).

    Good luck.





    On 02/05/2011 11:36 AM, lukemersh wrote:
    >
    > i am having problems with privileges i have created a new user with my
    > name, but i cant get root privileges on it.
    > please help, i need the same privileges as the root profile.
    >
    >

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v2.0.15 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

    iQIcBAEBAgAGBQJNTZ0/AAoJEF+XTK08PnB5eiEP/1txuBwII+sfUEvVCTcYIUHe
    CooJSrJQt3uvNpevT5z6lHE3+X3SS3FI61izWchKAUJI4zMSf9ZoFAEVUuGCqbQU
    koaMtvT0bwngGGIocO9AVkaMfVxSZJbCApL/q/J4WfLnLiOAkwmAk1/Y3TezMg8j
    ljhiufl8x9Hed7jsSOytBYRS4oT1E+hSYFR+NeqmtogRTxjKanAtJopMC9zX7exx
    cjwGeoaKItqGJpEsZxmlvPbbTM477HGF3ClhKHV2u9nrG1v9Kv8Xccx5uTz9InIv
    ASeFHDis0yc4ecsT8d7uAynbIXhBmw97c+Gq8hknXI/LnSWaP1KDjaNLdppHdKzh
    oKwyHlzoTwwnZADec9by3THWNdEP7buTld4w+KYozCwN7EG6vPsfDjVi/VzrHLF5
    Ql9SEqzdJtaUz2HOCrLYemWppu0BfG2ECv6tlke8PdETwiN0DqzX9FMVtnhUIkiP
    GSc0w1RuRCDzRlqlkuX6CF0D+HTTUtkEmNJraVPCmSmKkkDdtBlHU5VUrRlWqYR0
    rRCFikmvy5WW4AjmENzvmGFa4ka3/DARzQqA7qcjh8tPvPxMsMoWrzChfdxFPOkc
    0XXrkxcSeMyrGfdX/TiY/MKBGqGZLAw/8WFAWoxBpNMgr2WVzYegC2MZcGYNdgne
    bhBw5t0Vci4t8oswRsV2
    =YlCt
    -----END PGP SIGNATURE-----

  3. #3
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    13,361
    Blog Entries
    3

    Default Re: how can i get root privledges on my user account without using root login

    Quote Originally Posted by lukemersh View Post
    i need the same privileges as the root profile.
    No, you don't.

    Root privileges go with uid of 0.

    Logging in to the GUI with root privileges is unwise. It isn't that hard to use "sudo" or "su" to become root when needed, but best to be an ordinary user for most of what you do.

  4. #4
    Join Date
    Dec 2010
    Location
    Hampshire-UK
    Posts
    122

    Default Re: how can i get root privledges on my user account without using root login

    what i want to do is create sub-dir. in the www dir. for websites i will be creating, but i can only create sub_dir's in www when logged into 'root'

  5. #5
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,743
    Blog Entries
    20

    Default Re: how can i get root privledges on my user account without using root login

    Become su with
    Code:
    su -
    change to the dir where you want to create the sub-dir
    Code:
    cd /<dir>
    Make a new dir
    Code:
    mkdir <dir_name>
    Last edited by caf4926; 05-Feb-2011 at 13:47. Reason: typo to mkdir
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  6. #6
    Join Date
    Dec 2010
    Location
    Hampshire-UK
    Posts
    122

    Default Re: how can i get root privledges on my user account without using root login

    ok i will try that, i may have wrote cd www rather than cd /www

  7. #7
    Join Date
    Dec 2010
    Location
    Hampshire-UK
    Posts
    122

    Default Re: how can i get root privledges on my user account without using root login

    ok so got into www dir, but everytime i try to make a directory i get " mkdir / test_4
    mkdir: cannot create directory `/': File exists"

    any help?

  8. #8
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,743
    Blog Entries
    20

    Default Re: how can i get root privledges on my user account without using root login

    Like this, use the mouse to copy and paste or Ctrl+SHIFT+v

    Code:
    mkdir test_4
    sorry no /
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  9. #9
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,968

    Default Re: how can i get root privledges on my user account without using root login

    When you are whre you want to create a new directory, you say
    Code:
    mkdir newdir
    It would not be bad when you first try to understand what people advise you by checking the man page that goes with a command. When somebody suggests you to use a command it is not wise to just execute without checking and understanding because:
    . people may lure you into doinmg stupid things (not very likely here on these forums, but you never know);
    . people may make mistakes/typos in their hurry to help you;
    . people show you an example to give you a hint in what direction a solution might be found;
    . more of these ..
    But in the end YOU are responsible for every character you type in your system. Especialy when you are root.

    SDB:Login as root - openSUSE
    Henk van Velden

  10. #10
    Join Date
    Dec 2010
    Location
    Hampshire-UK
    Posts
    122

    Default Re: how can i get root privledges on my user account without using root login

    correction i cant get into the www dir, the other folder i have made appear in a different place, just in the Root folder?
    i have tried 'cd srv or cd / srv' but they didnt appear in the appropriate pllace??

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

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