Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 18
Well i just got done installing linux and this is the first time that i have ever used it. I know how to do a lot of stuff on windows ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2003
    Posts
    15

    How do i set myslef as administrator? or give me permissions


    Well i just got done installing linux and this is the first time that i have ever used it. I know how to do a lot of stuff on windows but linux is a lot different to em so far. How do i set myself as admin so that i can have all permissions to do stuff? I cant creat a folder in teh root dir and thats what i want to do but i keep getting a permission denied error. So what can i do? thanks


    -haryy

  2. #2
    Linux Engineer
    Join Date
    Jan 2003
    Location
    Lebanon, pa
    Posts
    994
    Code:
    su -
    That will log you in as root

  3. #3
    Just Joined!
    Join Date
    Aug 2002
    Location
    New Jersey
    Posts
    28
    In order to write to the root directory, you have to be root. When you installed linux, you should have been prompted for a password for the root user (I think every distribution asks for the root password during the installation process, at least SuSE and Slackware do). I really hope you remember it or wrote it down. When you're at the login, type 'root' as the user name, and whatever that root password was as the password.

    Now you're root, and can do _anything_ (so be careful).

    To change permissions of files, check out chmod

    hope this helps

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Aug 2002
    Location
    New Jersey
    Posts
    28
    actually, genlee's answer is better than mine (that's why he's a guru, and i'm a newbie =] ). It's generally not a good idea to login as root unless you need to be. So logging in as a lower-privilege user, and su'ing to root when needed is probably better and safer.

    congrats on 300 genlee

  6. #5
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    NO! Don't log in as root, at least not in the gdm (X (GUI)) login. It will not only make you have two seperate configuration databases, it's also just generally wrong, it screws up logs and does all kinds of evil stuff.
    Instead, if it is in a shell that you want root access, just run "su -", and you will get a subshell where you're logged in as root. If it is an X application that wants root privileges, it will usually ask for the root password these days.

  7. #6
    Just Joined!
    Join Date
    Feb 2003
    Posts
    15

    ok....

    So where do i type in "su -" at? in the termonal emulator? or what? sorry...but i am a complete newbie to linux.



    -haryy

  8. #7
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Yes. When I refer to a shell, that is a terminal for most users. It need not be, though. That's why I say shell, since it is really the shell that one refers to in those cases.

  9. #8
    Linux Engineer
    Join Date
    Jan 2003
    Location
    Lebanon, pa
    Posts
    994
    Neat, I didn't know I had 300 posts until I looked at this thread

  10. #9
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Yeah, really genlee, you're working your way up fast! You probably have the highest posts per day rating on the entire forum.

  11. #10
    Just Joined!
    Join Date
    Feb 2003
    Posts
    15
    it says that i dont have permissions to axs all of these. /mnt/cdrom, /mnt/cdrom2, /mnt/ disk, /mnt/floppy, /mnt/window (which is the windows partition)? How do i unlock them or how do i set my permissions differnet? thanks how do i do it so that i odnt have to be in a termonla emulator?


    -haryyv

Page 1 of 2 1 2 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
  •