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 06-04-2006, 10:00 AM   #1
Omnutia
LQ Newbie
 
Registered: Jun 2006
Distribution: Ubuntu 7.10
Posts: 16

Rep: Reputation: 0
Root password problems


Having got ubuntu working on a dual boot with windows 2k ive changed my bulk storage partition (I have one 60gb part for mass storage then 5gbs for each OS so if one dies then it dosnt mean reformating.) and after going through the process of borrowing paragon partition manager (took long enough, was this close from using bittorent.) I find that I have to mount it (though I think I unmounted it somehow.)
Now I have used comand prompt to try and get it back but the
Code:
mount /dev/hda1/ /media/winos/
gives me the response "only root can do this". After a quick search I discovered the sudo root and passwd root commands and set a password for my root which i entered and woe of woes it gave me "command not recognized", then continued to do this untill I restarted. Now if I enter a wrong password it comes up with "password:" again so:
Why is it that this one password (which I think is correct) is causing this error?
am I suposed to follow "sudo root" with the command I want to use on the same line?
and is there an easier way to mount this drive without resorting to phlak? (which may return the errorus password as the actuall root password.)
 
Old 06-04-2006, 10:26 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
I can tell you what I did to overcome this, this applies to the Red Hat family and may be a bit differnt for ubuntu. First make sure you have the device configured in /etc/fstab, example;

Code:
/dev/hda1     /media/winos    auto    exec,noauto,user,ro,umask=0 0 0
Then make sure you (the user) is in the /etc/sudoers file with the rights to use both mount and umount, example;

# Samples
%lenard ALL=NOPASSWD:/bin/mount ,/bin/umount

Notice the path is specified, it might be a good idea to also give yourself this path in your .bash_profile file (for example if needed). You may have to create a wheel group and add yourself to this group also.

$ mount /dev/hda2

$ ls -al /media/windowsxp
total 1376905
dr-xr-xr-x 1 root root 8192 May 31 08:36 .
drwxr-xr-x 7 root root 4096 Feb 5 16:09 ..
dr-xr-xr-x 1 root root 0 Apr 22 10:46 3a32
dr-xr-xr-x 1 root root 0 Feb 10 15:21 Acer
-r-xr-xr-x 1 root root 150528 Jun 19 2003 arcldr.exe
-r-xr-xr-x 1 root root 163840 Jun 19 2003 arcsetup.exe
-r-xr-xr-x 1 root root 0 Feb 10 14:02 AUTOEXEC.BAT
dr-xr-xr-x 1 root root 0 Feb 11 09:31 bcd
-r-xr-xr-x 1 root root 192 Feb 10 13:59 boot.ini
<snip, you get the idea>


$ umount /dev/hda2
 
Old 06-05-2006, 12:08 PM   #3
Omnutia
LQ Newbie
 
Registered: Jun 2006
Distribution: Ubuntu 7.10
Posts: 16

Original Poster
Rep: Reputation: 0
Im going to keep looking for a solution as Ive not had much experience with the terminal and by the looks of it I would probably loose the hard drive if I tried that. Thanks anyway, any links to that each of the "dr-xr-xr-x" etc... means? Im only just getting into copying files and directories.
Well thanks again, anything simpler?
 
Old 06-11-2006, 05:47 PM   #4
bgbranko
LQ Newbie
 
Registered: Apr 2006
Distribution: Arch Linux
Posts: 23

Rep: Reputation: 15
Quote:
Originally Posted by Omnutia
Now I have used comand prompt to try and get it back but the
Code:
mount /dev/hda1/ /media/winos/
gives me the response "only root can do this". After a quick search I discovered the sudo root and passwd root commands and set a password for my root which i entered and woe of woes it gave me "command not recognized", then continued to do this untill I restarted.
You don't need a root password in Ubuntu. Ubuntu gives your user the full admin power via sudo command. You type

Code:
sudo *command*
and then type YOUR OWN USER PASSWORD. Basically, it boils down to this way of working being more secure and stuff, something I know little about.
 
  


Reply

Tags
password, root, ubuntu


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 could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 11:28 PM
How to retrieve( or reset) root password in Mandrake Linux, as I forgot my password? Reghunath Linux - Software 4 05-08-2008 05:11 AM
Root password problems svinka Ubuntu 11 11-20-2005 10:17 PM
Root Password Problems Kintwa Linux - Newbie 2 10-10-2004 09:46 PM
Problems with Root Password J_Bone Linux - Security 17 09-30-2003 06:25 AM


All times are GMT -5. The time now is 04:44 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration