LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-24-2003, 02:06 PM   #1
JamboUK
Member
 
Registered: Apr 2003
Posts: 47

Rep: Reputation: 15
Question Ok..Simple... How can I delete folders in Gnome?


Ok..ok...complete newbie alert...

I am tinkering with Red Hat 8.0 and using the Gnome GUI. I know this sounds real stupid but.... I can't delete a folder from the /usr directory (for example) via Gnome. The 'Move To Trash' option is greyed out of the right click menu.

Drag and dropping to Trash gives me the 'Error While Moving......???? Cannot be moved to Trash because you do not have permissions to change it or it's parent folder'.

OK.... I am the only user of this machine and when installing RPM's/updates etc.... it prompts me for my root password......

OK...the bottom line is..... why haven't I got permission to delete folders from my own PC despite the fact I am the Sys Admin?
 
Old 04-24-2003, 02:15 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Are you logged in as root?
 
Old 04-24-2003, 02:16 PM   #3
rmartine
Member
 
Registered: Dec 2002
Location: San Luis Obispo, CA
Distribution: Fedora Core 3
Posts: 618

Rep: Reputation: 30
Certain folders just require root access to modify. It's just a security feature to prevent you or another user from trashing the /usr directory. Remember, some important things live in there /usr/src/linux

If you really want your user account to modify the /usr directory, change the permissions so you can write/delete to it.

man chmod
 
Old 04-24-2003, 02:17 PM   #4
manthram
Member
 
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456

Rep: Reputation: 31
if you log into the machine as a user other than root then you cant do any sys-admin functions unless you give the root password. the /usr partition is owned by the root and you dont have the permission to modify any files in it.

if you want to modify these files open the file explorer in superuser mode and then you can play with them.


manthram
 
Old 04-24-2003, 02:18 PM   #5
JamboUK
Member
 
Registered: Apr 2003
Posts: 47

Original Poster
Rep: Reputation: 15
Errr.....yeah....think..so

From my understanding of being logged on as root yeah.....

I mean.... I log on as a normal user (as recommended) but when it comes to installation / updates etc.... Gnome prompts me for my Root password....I then get the key icon next to the time....

I am logged on as root no?

Or if I go to terminal and enter SU...and password....I am root?
 
Old 04-24-2003, 02:22 PM   #6
manthram
Member
 
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456

Rep: Reputation: 31
yes if you go into the terminal and then su you are root. then you can do the operations in the terminal. but you will be still an ordinary user for the GUI context. so any time you launch a program owned by root then you have to give the root password.
if you want to use the program without entering the password every time logout and then login as "root" at the login page

manthram
 
Old 04-24-2003, 02:23 PM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
if you "su root" or even better "su -" then you will be root. What is it that you are trying to remove and what command are you using to remove it?
 
Old 04-24-2003, 02:26 PM   #8
JamboUK
Member
 
Registered: Apr 2003
Posts: 47

Original Poster
Rep: Reputation: 15
OK....think I am getting confused....

I installed Linux a while ago... I set up a root account and a user account for myself as recommended.

Somewhere along the way I have forgotten about the root account and been logging in as the user and entering the root password when prompted by the GUI.... that's the difference right?

The next snag is.....can't remember what the root account is. How can I find out?
 
Old 04-24-2003, 02:29 PM   #9
manthram
Member
 
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456

Rep: Reputation: 31
root account name is "root" and the password you gave for the "root password"

manthram
 
Old 04-24-2003, 02:37 PM   #10
JamboUK
Member
 
Registered: Apr 2003
Posts: 47

Original Poster
Rep: Reputation: 15
Smile

Brilliant....thank you all for putting up with my stupidty!!!
 
Old 04-24-2003, 02:41 PM   #11
JamboUK
Member
 
Registered: Apr 2003
Posts: 47

Original Poster
Rep: Reputation: 15
The only thing still confusing me....

If I log on as a standard user...and I have the key in bottom left by the clock.

The surely I am root albeit temporarily and should be able to delete anything I want.

Or am I still not quite with it?
 
Old 04-24-2003, 03:01 PM   #12
gdrobson
Member
 
Registered: Jun 2002
Location: Ontario, Canada
Distribution: RH8.0
Posts: 65

Rep: Reputation: 15
Quote:
Originally posted by JamboUK
The only thing still confusing me....

If I log on as a standard user...and I have the key in bottom left by the clock.

The surely I am root albeit temporarily and should be able to delete anything I want.

Or am I still not quite with it?
When you log on all the programs you load from Gnome will be with your user account.

A work around is to go into a terminal window "su -" then load the program... that is type "nautilus" and it will load the file manager as root.
 
Old 04-24-2003, 05:00 PM   #13
mhearn
LQ Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 57
This is the way it works.

You have 2 users, root and yourself. You never login directly as root, you only switch certain programs temporarily to root as and when needed.

The "su" command starts a new subshell as root. typing exit in a root shell you got with su will return you to normal user. This does NOT affect the rest of your session. You are still logged in as user, everything you do will be as user.

The key in the corner is a bit confusing I agree. Basically certain apps like config programs need root access to work, so redhat has it setup so that when you run it, you'll be prompted for the root password and those apps can do what they need (ie they run as root). The key sticks around for a few minutes - while the key is present you don't need to reauthenticate.

Eventually it will disappear and next time, you'll need to enter the root password again. This is so that if you wonder off nobody else can sit down and root your box (the timeout is 5 mins iirc). Or you can give up the authentication by right clicking on the key.
 
  


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
Can't delete Folders. duffmckagan SUSE / openSUSE 1 09-19-2005 11:09 AM
HELP: can't delete files/folders :( kevingpo General 1 12-07-2004 07:51 PM
Can you delete folders after ./configure ? iLLuSionZ Linux - Newbie 2 11-19-2003 07:39 PM
Am I able to delete folders after install? SuSE_Surfer Linux - General 6 10-17-2003 11:41 PM
How to delete invalid network folders? hitbob Linux - Networking 3 08-22-2003 04:50 PM

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

All times are GMT -5. The time now is 12:58 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