sudo: umount works, mount not works
Hello,
I've got a problem in doing sudo working for mounting things (e.g. usb pen or optic discs). Details: The OS: Slackware 13.0 The response to sudo -l command: Code:
User user1 may run the following commands on this host: When I try to mount it using sudo mount /dev/sda1 /media/usb, doesn't work, I get the response: Code:
Sorry, user user1 is not allowed to execute '/bin/mount /dev/sda1 /media/usb' as root on HOST1. If I use the full path sudo /sbin/mount /dev/sda1 /media/usb, still doesn't work: Code:
Sorry, user user1 is not allowed to execute '/sbin/mount /dev/sda1 /media/usb' as root on HOST1. But after I mount the /dev/sda1 using su, I can umount it using sudo umount /dev/sda1 What's wrong? Why the umount works and mount doesn't? Thanks. |
Quote:
|
Quote:
|
Quote:
Now I understand why the umount had worked and mount didn't in my initial setup. |
All times are GMT -5. The time now is 06:39 PM. |