Results 1 to 6 of 6
hi !
i want to be able to mount drives as user.
i wrote a little script
Code:
#/bin/bash
mount /dev/hdc /mnt/cdrom1
mount /dev/hdd /mnt/cdrom2
i set the s-bit to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-11-2004 #1
mounting drives as user
hi !
i want to be able to mount drives as user.
i wrote a little script
i set the s-bit to this script but when i run it as user i get the message that only root can mount drives.Code:#/bin/bash mount /dev/hdc /mnt/cdrom1 mount /dev/hdd /mnt/cdrom2
any ideas ?
thx in advance
greez robakmake install not love
Registered Linux user number 369245
- 10-11-2004 #2
Re: mounting drives as user
why not add a line to your fstab:
Originally Posted by robak
which allows for them to be mounted by an average joeCode:/dev/hdc /mnt/cdrom1 auto users 0 0 /dev/hdd /mnt/cdrom2 auto users 0 0
- 10-11-2004 #3
because both are hd
there is an error in my postet script
i use these hd only some times and i put them into sleep on boot withCode:#/bin/bash mount /dev/hdc1 /mnt/hdc mount /dev/hdd1 /mnt/hdd
hdparmmake install not love
Registered Linux user number 369245
- 10-11-2004 #4
hmmm.
well do this at your own risk but:
that should allow everyone to play with mount.Code:chmod u+s /bin/mount
- 10-11-2004 #5
hmm
i think if there is no other way i stay on doing mount with root
but thank for your postsmake install not love
Registered Linux user number 369245
- 10-11-2004 #6
no problem. sorry i couldn't be of much help...


Reply With Quote
