LinuxQuestions.org
Visit Jeremy's Blog.
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 12-22-2007, 01:45 PM   #1
maiden2
Member
 
Registered: Dec 2007
Location: Italy
Distribution: Ubuntu 8.10
Posts: 106

Rep: Reputation: 15
how to erase files owned by root?


I need to cancel and paste in the apache directory some new files but I can't do that cos'I'm not the root user.

please how can i do to acquire the root privileges to do what i need?

I tried typing in the terminal: "su root" but when i come back to my system diretory...i had not the root privileges to modify (deleting and paste some files into)

any suggestion?
 
Old 12-22-2007, 01:52 PM   #2
the_imax
Member
 
Registered: Apr 2004
Distribution: RHEL 4/ CentOS
Posts: 159

Rep: Reputation: 30
after doing su root you need to perform all the actions of copy/paste from the commands line in the same terminal ?
 
Old 12-22-2007, 01:54 PM   #3
maiden2
Member
 
Registered: Dec 2007
Location: Italy
Distribution: Ubuntu 8.10
Posts: 106

Original Poster
Rep: Reputation: 15
sorry but....

how to delete a file from the command line?

how to copy and paste from the comman line?

by the way, is it possible that it's impossible to work in graphical way like in windows?
 
Old 12-22-2007, 02:02 PM   #4
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
Quote:
Originally Posted by maiden2 View Post
sorry but....

how to delete a file from the command line?
rm filename
Quote:
how to copy and paste from the comman line?
highlight the filename with your right mouse button pressed. Paste by pressing the middle mouse button.
Quote:
by the way, is it possible that it's impossible to work in graphical way like in windows?
It is possible, but it's highly insecure and so not recommended.
You can use the Midnight Commander file manager from the root terminal, if it's installed. Just type mc in the command line.

Or, if you really want to, you can launch your favorite file manager from the root terminal. Just type its name there after su'ing to root.

What distro do you use?
 
Old 12-22-2007, 02:03 PM   #5
the_imax
Member
 
Registered: Apr 2004
Distribution: RHEL 4/ CentOS
Posts: 159

Rep: Reputation: 30
after the system boots you can login directly via the root account (not recommended) if you want to modify the files owned by root from a graphical environment, otherwise you can use the terminal to perform the required tasks

cp command is used for copying files

cp /oldlocation /newlocation

mv command is used for moving and renaming

mv /old/file1 /new/file1

read their man page for more options
 
Old 12-22-2007, 03:48 PM   #6
maiden2
Member
 
Registered: Dec 2007
Location: Italy
Distribution: Ubuntu 8.10
Posts: 106

Original Poster
Rep: Reputation: 15
Many thanks to everybody for the useful suggestions!
 
Old 12-22-2007, 08:44 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,419

Rep: Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785
I suggest you bookmark & use these:
http://tldp.org/LDP/abs/html/
http://rute.2038bug.com/index.html.gz
http://linux.oneandoneis2.org/LNW.htm
 
  


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
how to edit files owned by root? maiden2 Linux - Newbie 3 12-12-2007 01:32 PM
Editing files owned by root SiW Programming 5 07-31-2007 02:36 PM
user access to files owned by root jonfa Linux - General 2 07-09-2007 12:58 PM
all users have access to root owned files sakatola Linux - Security 2 07-22-2005 01:45 AM
vfat mount - all files are 'root' owned, but even root can't -WX d33pdream Linux - General 5 02-28-2003 03:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:26 PM.

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
Open Source Consulting | Domain Registration