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.
- 05-03-2003 #1Just 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)?
- 05-03-2003 #2Linux 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".
- 05-03-2003 #3Just 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.
- 05-03-2003 #4Linux Engineer
- Join Date
- Jan 2003
- Location
- Lebanon, pa
- Posts
- 994
Code:rm -rf /path/to/dir
- 05-03-2003 #5Linux Engineer
- Join Date
- Apr 2003
- Location
- Sweden
- Posts
- 796
Or use this command, NOTE if the directory is empty.
If you must useCode:rmdir /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..Code:rm -rf /path/to/dir
Regards
Regards
Andutt


Reply With Quote
