Find the answer to your Linux question:
Results 1 to 3 of 3
Ok, so I need to log in as root to find this file at /etc/inittab and edit some lines. How do I log in as root? At the command prompt ...
  1. #1
    Just Joined!
    Join Date
    Nov 2006
    Posts
    3

    How do I?

    Ok, so I need to log in as root to find this file at /etc/inittab and edit some lines. How do I log in as root? At the command prompt I logged in as root and did the "startx" thing, but then when I got to the terminal program, it said I didn't have permission to do what I wanted to do. So, how do I do it?

  2. #2
    Linux Engineer scrarfussi's Avatar
    Join Date
    Aug 2006
    Posts
    1,029
    Quote Originally Posted by aciesler
    Ok, so I need to log in as root to find this file at /etc/inittab and edit some lines. How do I log in as root? At the command prompt I logged in as root and did the "startx" thing, but then when I got to the terminal program, it said I didn't have permission to do what I wanted to do. So, how do I do it?
    From prompt type su then vi
    /etc/inittab
    That should work

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    after loading GUI ( startx ), open terminal/konsole and execute this code.
    Code:
    su -
    gedit /etc/inittab
    in case, you are in command line mode, use 'vi' instead of gedit.





    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

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