[LBo] Only root can mount (Suse 10)
Howard Rosen
hrosen33 at dialup4less.com
Sun Jul 29 15:45:58 CEST 2007
On Sun, 2007-07-29 at 22:23 +0900, grasshopper wrote:
> On Sun, 2007-07-29 at 07:03 -0400, Anita Lewis wrote:
> > On 07/29/2007 03:05 AM grasshopper wrote:
> >
> > > grasshopper at linux:~> ls -lh /dev/cdrom
> > > lrwxrwxrwx 1 root root 3 2007-07-28 18:36 /dev/cdrom -> sr0
>
> Oops, didn't see that:
> grasshopper at linux:~> ls -lh /dev/sr0
> brw-rw----+ 1 grasshopper disk 11, 0 2007-07-29 20:56 /dev/sr0
>
> >
> > <snip>
> >
> > >> 2. If that is a link then do the same on the thing it is linked to.
> >
> > <snip>
> >
> > ls -lh /dev/sr0
> >
> > The grep command on /etc/group shows that grasshopper is a member of
> > dialout and video. If the group on /dev/sr0 is not one of those, then I
> > think you will need to make grasshopper a member of whatever group is
> > being used for /dev/sr0 (assuming that the group for /dev/sr0 is not root)
> >
> I'm not sure I understand the above. Should I make 'user' also part of the /etc/group?
Yes. Possibly even users. The reason should be in either
the /etc/fstab tutorial or, within it, is a link to mounting with the
mount command.
>
> grasshopper at linux:~> grep grasshopper /etc/group
> dialout:x:16:grasshopper
> audio:x:17:grasshopper
> cdrom:x:20:grasshopper
> video:x:33:grasshopper
>
> >
> > You should use Yast to do this. You can edit the /etc/group file to do
> > it, but with Suse I used to get things overwritten if I did not do them
> > with Yast. Let us know how this goes.
> >
> > Anita
> >
> I went into Yast and added cdrom, and I think everything is in order, though I still get the 'only root....'
> so should I go into the /etc/group file and change it there?
1. insert a cd into the cd drive prior to bootup. That is where the
auto and user(s) are put into use and the script will mount your cdrom.
The message about "only root..." is because, if the cd is not mounted
during bootup, then the cli requires that only root can mount. NOTE:
cli = command line interface, typing commands at the prompt.
To do a mount of your cd at the command line prompt,if you are not using
the script, do the following:
grasshopper at linux:~> su
type on this line root's password. NOTE you will not see anything when
you enter the password.
The prompt changes from > to # which indicates that the current user is
now root.
/home/root at linux:~># mount /dev/cdrom
/home/root at linux:~># ls -l /dev/cdrom
You should now see the files on your cdrom.
Enter
/home/root at linux:# exit
grasshopper at linux:~>
You are now not root but your user and you can then copy files from your
cdrom.
Howard
>
> Many thanks for your help.
>
> grasshopper
>
>
>
>
>
>
>
More information about the QnA
mailing list