LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 10-01-2006, 10:30 AM   #1
Cobra243
Member
 
Registered: Aug 2006
Posts: 35

Rep: Reputation: 15
root help!


Hi, during an installation that i did a locked folder was created on my desktop and i can't get rid of it cause it say that needs necessary permision that i don't have. Also my external hard drive and my usb stick are found by the os(ubuntu) but i can't mount them. What is wrong? Do i have to become root? If yes how? I only know how to become root from terminal(but i don't want to use terminal all the time).
 
Old 10-01-2006, 12:14 PM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
You need to use terminal to become root, unless you're using gksudo or some other graphical sudo-app, since the other way would be to do a graphical login as root, which is definitely a bad idea.

What you will want to do, anyway, is to use console and sudo (on Ubuntu the root account is locked at first; to unlock, use sudo passwd root and give root some password only you know) to alter the mount-rights; you could edit your /etc/fstab for example (the usb-stick problem) and add to the options part this:

umask=022

which lets every user use the device.

For a locked file, change it's ownership to whoever user you use, and make sure it has at least read permissions (chmod +r filename).
 
Old 10-01-2006, 02:33 PM   #3
Cobra243
Member
 
Registered: Aug 2006
Posts: 35

Original Poster
Rep: Reputation: 15
Can you be more detailed on how can i do this please?
 
Old 10-01-2006, 03:04 PM   #4
dogged28
Member
 
Registered: Jul 2006
Location: Lubbock, Tx.
Distribution: Ubuntu Dapper Drake
Posts: 184

Rep: Reputation: 30
let's see if i can help. go to applications>accessories>terminal at the terminal type sudo sh hit enter.
cd to where the file is located and type: chmod +r the locked filename hit enter.

still as root, open type gedit hit enter. pull up the /etc/fstab file and edit umask=022 save it and exit.

that should fix your problem. i believe. if i'm wrong b0uncer please correct me.
ubuntu has no root account per se. you have to sudo for the root account and enter your password. which is generally the one you set up with your login during install. hope this helps.
 
Old 10-02-2006, 07:14 AM   #5
Cobra243
Member
 
Registered: Aug 2006
Posts: 35

Original Poster
Rep: Reputation: 15
Yea that helped a little, but not entirly. With chmod +r or chmod o+rwx i could unlock the folder but then the subfolders locked and now i have to unlock every one of them manually. When i unlock the folder the subfoldes were locked but the files not. I could delete the files. So, is there any command that could unlock the folder and everything inside it?
 
Old 10-02-2006, 07:21 AM   #6
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
What exactly is the foldeR? if it's owned by root it may have some sort of importance... i wouldn't go removing it without knowing what it is...

if you wanted to delete the folder et all you could do
Code:
sudo rm -rvi ~/Desktop/<folder>/

Last edited by ethics; 10-02-2006 at 02:40 PM.
 
Old 10-02-2006, 10:17 AM   #7
Cobra243
Member
 
Registered: Aug 2006
Posts: 35

Original Poster
Rep: Reputation: 15
It tells that, rm: descend into directory and here we go again. I think there is command something like sudo rmdir --ignore.. that removes a folder ignoring if it is not empty. Does anybody know that command? Or can you point me where the mistake is (rm: descend into directory)?
 
Old 10-02-2006, 11:12 AM   #8
pete1234
Member
 
Registered: May 2005
Distribution: Slack, FreeBSD,NetBSD, OpenBSD, Open Solaris, Minix
Posts: 172

Rep: Reputation: 30
rm -r From man rm:

-r, -R, --recursive
remove the contents of directories recursively
 
Old 10-03-2006, 07:56 AM   #9
Cobra243
Member
 
Registered: Aug 2006
Posts: 35

Original Poster
Rep: Reputation: 15
Finally after so many hours of strugling this actually worked!! Thanks so much!!
 
  


Reply



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
RHEL3 Mounting USB after reboot and between reboots: root and non-root users Luis Nunes Linux - Hardware 0 07-20-2005 08:32 AM
Boot Error: Root file system /dev/root adtomar Linux - Networking 0 12-27-2004 10:50 AM
IntelliMouse thumb buttons work as root, broken as non-root user, wheel works always digital vortex Linux - Hardware 7 03-02-2004 04:14 PM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 04:14 PM
cant resize root thru rescue, auto mounts root dir absolutal Linux - Newbie 0 06-18-2003 03:06 PM

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

All times are GMT -5. The time now is 05:56 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
Open Source Consulting | Domain Registration