LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-07-2006, 06:56 AM   #1
Torget
LQ Newbie
 
Registered: Apr 2006
Posts: 9

Rep: Reputation: 0
Smile Terminal Commandoes


Hi!
I've been trying to delete a protected folder, but i can't turn off the write-protection! Its sais i'm not the owner of the computer. But the computer don't know that i bought this computer with my hard earned cash, so i could not be more owner than what i am :P

I know how to su in the terminal but i don't know how to remove a folder with terminal commands. And i don't understand the basic syntaxes when i type help.

Is there any other way to become root? I have read all there is about it in other topics but still don't understand.

I'm totally new to Linux, so take it easy on me.

Can someone please help me?

Using SuSE 10.0
 
Old 04-07-2006, 07:21 AM   #2
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
before i tell you how to remove it, what is the directory??
 
Old 04-07-2006, 07:59 AM   #3
Torget
LQ Newbie
 
Registered: Apr 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Its just a empty directory from a failed extraction. nothing important, it's in Home.

thanks
 
Old 04-07-2006, 08:10 AM   #4
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
well then you can use

Code:
su
then root password

then
Code:
rm -r <directory>
- be VERY VERY careful doing this as root, if you put a typo in the path you can delete all sorts, the classic example is rm -r / home/something that will pickup / as the path because there's a space...

you can change the ownership with
Code:
chown <user>:<group> <directory/file>
 
Old 04-07-2006, 09:19 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by Torget
Is there any other way to become root? I have read all there is about it in other topics but still don't understand.

I'm totally new to Linux, so take it easy on me.
You can log in to the GUI as root--assuming that is enabled. This is somewhere in your menus. (This is a BAD idea, however. Working in the GUI, its all too easy to screw something up.)

In a terminal, "su" gives you root powers. "su -" gives you the same environment as if you had logged in as root.
 
Old 04-07-2006, 01:42 PM   #6
DanTaylor
Member
 
Registered: Jan 2006
Distribution: Debian Sarge
Posts: 265

Rep: Reputation: 30
Most of the time there is also a "run-as" program that will allow you to run your browser as root, probably a bad idea too, but you can do that.
 
Old 04-07-2006, 09:31 PM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by DanTaylor
Most of the time there is also a "run-as" program that will allow you to run your browser as root, probably a bad idea too, but you can do that.
Make that ALL the time....
To run any application as root, find the command and do "sudo <command>"
 
Old 04-08-2006, 08:45 AM   #8
Torget
LQ Newbie
 
Registered: Apr 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks a lot! Figured it out thanks to you!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
making a script that opens terminal and enter commands into that terminal Cinematography Linux - General 8 12-16-2008 11:34 AM
Switching back to the Mandrake 9.1 desktop from terminal rdesktop terminal session marc218 Linux - General 6 02-08-2007 03:45 PM
How to launch an app in terminal, & keep it running after I close terminal? kornerr Linux - General 7 06-24-2006 06:54 PM
Alternative terminal to konsole & gnome-terminal Adony Linux - Software 3 10-08-2004 04:59 AM
Opening a new terminal from Fluxbox menu (or another terminal) hallamigo Linux - Software 1 05-02-2004 04:32 AM


All times are GMT -5. The time now is 11:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration