Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mount permission problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
superfanny
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2004
Posts: 101

PostPosted: Mon Dec 13, 2004 1:23 pm    Post subject: mount permission problem Reply with quote

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
View user's profile Send private message
JPMRaptor
Guru
Guru


Joined: 04 Oct 2002
Posts: 410
Location: Maryland

PostPosted: Mon Dec 13, 2004 11:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
petrasl
n00b
n00b


Joined: 18 May 2004
Posts: 69
Location: Swiss

PostPosted: Mon Dec 13, 2004 11:47 pm    Post subject: Re: mount permission problem Reply with quote

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
View user's profile Send private message
superfanny
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2004
Posts: 101

PostPosted: Tue Dec 14, 2004 3:09 am    Post subject: Reply with quote

Tried both. Still not work.... any idea?????
Back to top
View user's profile Send private message
superfanny
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2004
Posts: 101

PostPosted: Tue Dec 14, 2004 8:13 am    Post subject: Reply with quote

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
View user's profile Send private message
spawn9680
n00b
n00b


Joined: 11 Nov 2003
Posts: 29

PostPosted: Tue Dec 21, 2004 9:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum