Find the answer to your Linux question:
Results 1 to 5 of 5
Actually I have 2 questions. One, how do I sign on as root in a GUI (not in the terminal). And two, how do I delete a directory in a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2003
    Posts
    9

    Erasing Files in Shell


    Actually I have 2 questions. One, how do I sign on as root in a GUI (not in the terminal). And two, how do I delete a directory in a terminal? (Whats the command)?

  2. #2
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    OK, first of all: You really shouldn't log in as root in the GUI (actually, not at all, but there are many good exceptions), unless you have _really_ good reasons. This has many serious security considerations. If a normal application (like mozilla, gaim, etc.) gets cracked over the internet, the attacker will only have access to your user's data. That's of course bad, but far better than if he gets root access.
    With that said, if you still want to log in as root, change the "AllowRoot=false" line under the "security" sections in your /etc/X11/gdm/gdm.conf to "AllowRoot=true".

  3. #3
    Just Joined!
    Join Date
    Apr 2003
    Posts
    9
    Thank you very much... but one last thing, what is the command in a terminal to delete a directory? (Folder, etc.) Thanks.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer
    Join Date
    Jan 2003
    Location
    Lebanon, pa
    Posts
    994
    Code:
    rm -rf /path/to/dir

  6. #5
    Linux Engineer
    Join Date
    Apr 2003
    Location
    Sweden
    Posts
    796
    Or use this command, NOTE if the directory is empty.

    Code:
    rmdir /path/to/dir
    If you must use

    Code:
    rm -rf /path/to/dir
    Make sure you specifie the directory, try not to use wildcards as *. Many people have made mistakes and deleted whole strucutures with this command. Its very good but know what you a re doing..

    Regards

    Regards

    Andutt

Posting Permissions

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