+ Reply to Thread
Results 1 to 5 of 5

Thread: Can’t login to root

  1. #1
      Associate toastrack
    Join Date
    Nov 2006
    Posts
    30

    Can’t login to root

    Trying to access smbpasswd file to debug networking, I need root to be able to edit that file.

    But my system doesn’t seem to give me the option of booting up in root. How do I make it do this ??

    BTw, sometimes recently it’s been asking for the root password before it will boot up normally, which seems strange.

    System is Suse 10.2, latest updates present.

    I need to sort this before I can move on to get the network working again.

  2. #2
      Mentor Kernel_Killer Kernel_Killer's Avatar
    Join Date
    Feb 2002
    Location
    Misery
    Posts
    1,652
    Log in, and use ‘sudo -s’ to give you a root shell, but with your account password. Also, you can give yourself permission by using ‘su’.

    Did you have to set a root password when you setup the account? A lot of GUI login managers will disallow root access, but you can change it to allow it. In KDE there is a whole section for the login manager, and enable it to allow root. Of course, it’s not a good practice to log into X as root at all.

    If you did set a root password, you can run the GUI tool with the ‘kdesu’ command, and it will authenticate before it starts it.
    arrogance breeds ignorance

    Screaming Electron, Full of BSD Goodness

  3. #3
      Associate toastrack
    Join Date
    Nov 2006
    Posts
    30
    Thanks . I understand some of this.

    I did have to set a root password when I installed Suse. I take your comment that it’s better to open a new shell for root than to log in from the start as root.

    Now the simple question:- having got the root shell open and running, what is the command I need to text-edit a file such as smbpasswd please ?

    A related question – can I find an individual file and reload it from the installation discs? If so, what is the procedure ?

  4. #4
      Mentor Kernel_Killer Kernel_Killer's Avatar
    Join Date
    Feb 2002
    Location
    Misery
    Posts
    1,652
    Finding that file would be an extreme pain. As for editing the smbpasswd, you don’t really have to edit it with an editor. You can use the smbpasswd command to accomplish this.

    As root:

    $ smbpasswd -a user1 # add "user1" to the smbpasswd file
    $ smbpasswd -e user1 # enable the "user1" account
    $ smbpasswd -x user1 # delete "user1" from the smbpasswd file

    You can find more options, just by typing ‘smbpasswd’ in the terminal, without adding anything else.
    arrogance breeds ignorance

    Screaming Electron, Full of BSD Goodness

  5. #5
      Newbie okieman46 okieman46's Avatar
    Join Date
    Dec 2009
    Location
    Somewhere, Oklahoma
    Posts
    2
    You can also use the command man smbpasswd for more info as well

+ Reply to Thread

Similar Threads

  1. Replies: 3
    Last Post: 10-16-2008, 06:02 AM
  2. Burning Debian ISO’s Right Now
    By johnqpublic in forum Ubuntu / Debian
    Replies: 9
    Last Post: 11-21-2007, 11:03 AM
Replies: 2
Last Post: 11-20-2007, 01:57 AM
  • Replies: 8
    Last Post: 01-30-2007, 08:25 AM
  • DSP-device fsk’d up ;-(
    By Pantheus in forum Linux – General Topics
    Replies: 28
    Last Post: 09-05-2002, 02:13 AM
  • Bookmarks

    Bookmarks

    Posting Permissions

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