You are not logged in.
Pages: 1
Hello, i can't mount my ntfs external hd on kdemod 4.1.2 like a normal user... i installed nfts-3g like the wiki says and this is my fstab:
/dev/fd0 /media/fd0 auto user,noauto 0 0
/dev/sda2 /boot ext2 defaults 0 1
/dev/sda3 / jfs defaults 0 1
/dev/sda5 swap swap defaults 0 0
#------ USB disk -------------
/dev/sdc1 /mnt/usbdisk ntfs-3g defaults,user,gid=users 0 0
but when i try to open the disk in Dolphin it says this:
Error opening '/dev/sdc1': Permission denied
Failed to mount '/dev/sdc1': Permission denied
Pease check '/dev/sdc1' and the ntfs binary permissions,
and the mounting user ID. More explanation is provided at
http://ntfs-3g.org/support.html#unpriviledged
this is my groups list
tty wheel video audio optical floppy storage scanner power users usb
what can i do?
thanks..
Offline
Try adding forced.
/dev/sdc1 /mnt/usbdisk ntfs-3g defaults,user,gid=users 0 0
Would become
/dev/sdc1 /mnt/usbdisk ntfs-3g defaults,forced,user,gid=users 0 0
Also, generally, I don't do the user, gid=users and defaults thing. It works just fine here.
My coding blog (or an attempt at it)
Archer start page (or an attempt at it)
Offline
nope, nothing changes...
is it possible that i need setuid-root like here http://ntfs-3g.org/support.html#unprivileged?
Offline
For options, try just
defaults,users,rw
Also, if you're having trouble because the volume is dirty (Windows wasn't shutdown properly or something like that), you can mount with force (not forced), but that won't help if you don't have the proper permissions to mount in the first place. "users" should just let normal users mount/umount the volume, assuming your user has ownership of the directory the volume is mounting to (in this case, /mnt/usbdisk).
Hope that helps.
Offline
Try changing the owner of /mnt/usbdisk to your user, if it isnt already owned by him.
Offline
Now my fstab is:
/dev/sdc1 /mnt/usbdisk ntfs-3g defaults,users,rw,force 0 0
i have typed from root:
chown kcr /mnt/usbdisk
but nothing...
i need to reboot the system?
i readed in the forum that someone talked about a problem with fuse...is it possible?
thanks..
Last edited by kcr (2008-10-08 19:15:07)
Offline
After
chown kcr /mnt/usbdisk/
do
chmod u+rw -R /mnt/usbdisk/
and then reboot, just to be completely sure. Also, make sure your normal user is a member of all the standard groups (wheel,users,optical,storage,audio,etc.) in /etc/group.
Offline
still not working....i don't believe it...
maybe the problem is with mount+ntfs-3g or udev?
there are just suggestion...:(
Offline
Hello kcr, been dealing with this problem long enough...I did manage to mount ntfs partitions though...It automounts through Hal...If you have installed Hal, then you won't have problems...
But before Hal automates you must clear the entries related to your partition on the /etc/fstab
Hope that helps coz it did for me....^ ^
Netbook (Acer Aspire One 110 || 160gb SATA HD || 1.5gb ram): archlinux i686 / KDEmod 4.3
Registered Linux User # 481212 / Machine Registration # 390468
"In a world without walls and fences, who needs windows and gates?"
Offline
nope, nothing changes...
is it possible that i need setuid-root like here http://ntfs-3g.org/support.html#unprivileged?
yes, it's your solution for the "unprivileged" problem.
the current usb automount udev bug is another film.
as that guide say:
Please note that using setuid-root can result unforeseen privilege escalation and its usage is discouraged. Only the absolutely trusted users must be granted such access. Below is an example how this can be done for users in the ntfsuser group to be able to mount any NTFS volume if they have also the needed volume access rights.
chown root.ntfsuser $(which ntfs-3g)
chmod 4750 $(which ntfs-3g)The setuid-root ntfs-3g driver applies the principle of least privilege during its lifetime as a safety measure.
Last edited by max.bra (2008-10-09 07:36:48)
Offline
So i simply type this like root:
chown root.ntfsuser $(which ntfs-3g)
chmod 4750 $(which ntfs-3g)
or i need to give the path of nfts-3g's binary, because like this it's still not working...
thanks..
Offline
i resolve the problem typing this like root:
chmod +s /sbin/mount.ntfs-3g
and now i can mount my external drive with write permissions...
it's a good solution?
thanks..
Offline
for a little bit more security:
fallback your settings:
chmod -s /sbin/mount.ntfs-3g
create ntfsuser group
groupadd ntfsuser
add your user account to ntfsuser group
gpasswd -a <yourusername> ntfsuser
trim ntfs-3g main executable:
change owner of the binary
chown root.ntfsuser /bin/ntfs-3g
cut out all but root and ntfsuser members group, and set suid
chmod 4750 /bin/ntfs-3g
this two last steps must be redone every ntfs-3g update
checkout (ls -la /bin/ntfs-3g)
-rwsr-x--- 1 root ntfsuser 36080 29 ago 11:49 /bin/ntfs-3g
in above line, last /bin/ntfs-3g sould be red backgrounded
cya
Last edited by max.bra (2008-10-10 12:06:11)
Offline
My (somehow related) problem: http://bbs.archlinux.org/viewtopic.php?pid=435366
Last edited by matchil (2008-10-16 21:42:15)
Offline
Please start a new topic for a new problem
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Hello,
I'm very very sorry for "exhume" this post again...
First of all thanks max.bra for your help, now it doesn't bother with ntfs-3g and unprivileged but with this:
mount: only root can mount /dev/sdc1 on /mnt/usbdisk
So i followed the wiki here http://wiki.archlinux.org/index.php/HAL#NTFS and it worked..
BUT (always there is a but..) now every ntfs partition that i mount is in write mode.. it's ok for my external disk but NOT for my primary partition with xp (that i want in read-only mode)..
what can i do?
thanks again
p.s. i use kdemod
Offline
Pages: 1