View previous topic :: View next topic |
Author |
Message |
superfanny Tux's lil' helper
Joined: 11 Sep 2004 Posts: 101
|
Posted: Mon Dec 13, 2004 1:23 pm Post subject: mount permission problem |
|
|
Hi, this is my /etc/fstab
/dev/hda6 /boot reiserfs auto,noatime,notail 1 2
/dev/hda3 / reiserfs defaults 1 1
#/dev/hda4 none swap sw 0 0
/dev/hda2 swap swap defaults 0 0
/dev/hda4 /home reiserfs defaults 1 2
/dev/cdroms/cdrom2 /mnt/cdrom iso9660 noauto,ro,users 0 0
/dev/cdroms/cdrom0 /mnt/dvd iso9660 noauto,ro,users 0 0
/dev/cdroms/cdrom1 /mnt/writer iso9660 noauto,ro,users 0 0
/dev/fd0 /mnt/floppy auto noauto,users 0 0
/dev/hda1 /mnt/windows ntfs noauto,users,ro,umask=0222 0 0
/dev/hda5 /mnt/data vfat auto,users,rw,umask=000 1 0
# NOTE: The next line is critical for boot!
none /proc proc defaults 0 0
When I do this "mount /mnt/windows" ( you can replace /mnt/windows with anything ), I got permission error:
mount: must be superuser to use mount
l$ ls -la /bin/mount
-rwx--x--x 1 777 root 72464 Jul 12 02:56 /bin/mount
What 's the problem? I have my user in users group. |
|
Back to top |
|
|
JPMRaptor Guru
Joined: 04 Oct 2002 Posts: 410 Location: Maryland
|
Posted: Mon Dec 13, 2004 11:31 pm Post subject: |
|
|
My mount is suid:
Quote: | $ll /bin/mount
-rws--x--x 1 root root 88868 Feb 24 2004 /bin/mount
|
Try calling:
Code: | chmod 4711 /bin/mount |
_________________ Underwater photo gallery
New pictures, Oct 2005 |
|
Back to top |
|
|
petrasl n00b
Joined: 18 May 2004 Posts: 69 Location: Swiss
|
Posted: Mon Dec 13, 2004 11:47 pm Post subject: Re: mount permission problem |
|
|
superfanny wrote: |
/dev/hda1 /mnt/windows ntfs noauto,users,ro,umask=0222 0 0
When I do this "mount /mnt/windows" ( you can replace /mnt/windows with anything ), I got permission error:
mount: must be superuser to use mount
|
Try to remplace "users" with "user" in the fstab. |
|
Back to top |
|
|
superfanny Tux's lil' helper
Joined: 11 Sep 2004 Posts: 101
|
Posted: Tue Dec 14, 2004 3:09 am Post subject: |
|
|
Tried both. Still not work.... any idea????? |
|
Back to top |
|
|
superfanny Tux's lil' helper
Joined: 11 Sep 2004 Posts: 101
|
Posted: Tue Dec 14, 2004 8:13 am Post subject: |
|
|
JPMRaptor wrote: | My mount is suid:
Quote: | $ll /bin/mount
-rws--x--x 1 root root 88868 Feb 24 2004 /bin/mount
|
Try calling:
Code: | chmod 4711 /bin/mount |
|
After doing that, I cann't boot into gentoo anymore so I rever it back by
# chown root /bin/mount
The problem exists..... |
|
Back to top |
|
|
spawn9680 n00b
Joined: 11 Nov 2003 Posts: 29
|
Posted: Tue Dec 21, 2004 9:35 pm Post subject: |
|
|
I don't know if they are the same, but to preserve the initial permissions and just make it suid, just type in "chmod +s /bin/mount". That's all I had to get mine working. _________________ Take part of the adopt an unaswered post initiative |
|
Back to top |
|
|
|