Samba mount not as root
Have written some scripts that perform network backups. However I am only able to run them as root. How can give mount permissions to another user.
Paul Kraus
Network Administrator
PEL Supply Company
216.267.5775 Voice
216-267-6176 Fax
www.pelsupply.com
BEGIN:VCARD
VERSION:2.1
N:Kraus;Paul
FN:Paul Kraus ([email protected])
ORG:PEL Supply Company
TITLE:Network Administrator
TEL;WORK;VOICE:(216) 267-5775
TEL;CELL;VOICE:(216) 410-5526
TEL;WORK;FAX:(216) 267-6176
ADR;WORK:;;4666 Manufacturing Road;Cleveland;Ohio;44135;United States of America LABEL;WORK;ENCODING=QUOTED-PRINTABLE:4666 Manufacturing Road=0D=0ACleveland, Ohio 44135=0D=0AUnited States of Ame= rica
ADR;HOME:;;;;;;United States
LABEL;HOME:United States
URL;WORK:http://www.pelsupply.com
EMAIL;PREF;INTERNET:[email protected]
REV:20020416T182124Z
END:VCARD
Quoted 3 lines · Paul Kraus
Have written some scripts that perform network backups. However I am only able to run them as root. How can give mount permissions to another user.
Just a side note, have you seen smbtar? Might be easier than mounting a directory and copying it, and then unmounting it.
mdresser@monitor:~$ smbmount //mike/c test Password: mdresser@monitor:~$ df /home/mdresser/test Filesystem 1k-blocks Used Available Use% Mounted on //mike/c 15498752 7959040 7539712 52% /home/mdresser/test
Not sure where you're having trouble. Can you as a user write to mount point?
Mike
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 6 lines · Mike Dresser
Quoted 3 lines · Paul Kraus
Have written some scripts that perform network backups. However I am only able to run them as root. How can give mount permissions to another user.
Quoted 9 lines
Just a side note, have you seen smbtar? Might be easier than mounting a directory and copying it, and then unmounting it.
mdresser@monitor:~$ smbmount //mike/c test Password: mdresser@monitor:~$ df /home/mdresser/test Filesystem 1k-blocks Used Available Use% Mounted on //mike/c 15498752 7959040 7539712 52% /home/mdresser/test
mdresser@monitor:~$ umount /home/mdresser/test umount: //mike/c: not found umount: /home/mdresser/test: must be superuser to umount
Humm. This is very interesting :)
Bug in my mount program, I'd say. Either shouldn't let me mount, or should let me unmount.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Hello Mike ,
Quoted 8 lines · Mike Dresser
Quoted 7 lines · Mike Dresser
Quoted 3 lines · Paul Kraus
Have written some scripts that perform network backups. However I am only able to run them as root. How can give mount permissions to another user.
Just a side note, have you seen smbtar? Might be easier than mounting a directory and copying it, and then unmounting it.
mdresser@monitor:~$ smbmount //mike/c test
Hmmm , My smbmount tool screams at me to use ... This is with version 2.2.7 . Which is highly recomended due to a Security issue . Don't know how far back in versions the issue goes tho .
---qoute.
This command is designed to be run from within /bin/mount by giving the option '-t smbfs'. For example:
mount -t smbfs -o username=tridge,password=foobar //fjall/test /data/test
---
More below .
Quoted 5 lines
Quoted 4 lines
Password:
mdresser@monitor:~$ df /home/mdresser/test Filesystem 1k-blocks Used Available Use% Mounted on //mike/c 15498752 7959040 7539712 52% /home/mdresser/test
Quoted 8 lines
mdresser@monitor:~$ umount /home/mdresser/test umount: //mike/c: not found umount: /home/mdresser/test: must be superuser to umountHumm. This is very interesting :)
Bug in my mount program, I'd say. Either shouldn't let me mount, or should let me unmount.
The below is what I get when attempting to use it thru 'mount' as a plain user . I also agree with you it's a bug in the tool being used . I have not even attempted to allow users to use 'mount' . As with the best of local controls it can still be a dangerous functionality . Hth , JimL
~ $ mount -t smbfs -o username=james //jimmysplace/home ~/mount-here mount -t smbfs -o username=james //jimmysplace/home
mount: only root can do that
Signature · 10 lines
+------------------------------------------------------------------+
| James W. Laferriere | System Techniques | Give me VMS |
| Network Engineer | P.O. Box 854 | Give me Linux |
| [email protected] | Coudersport PA 16915 | only on AXP |
+------------------------------------------------------------------+
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqsQuoted 4 lines · Mr. James W. Laferriere
Quoted 1 line
Quoted 1 line
mdresser@monitor:~$ smbmount //mike/c testHmmm , My smbmount tool screams at me to use ... This is with version 2.2.7 . Which is highly recomended due to a Security issue . Don't know how far back in versions the issue goes tho .
My debian 2.2r6 doesn't let me mount, but debian 3.0 does.
Most odd. I wonder if i should file a bug. Ah, looking at
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=169624, someone did 11 days ago
:)
I'll add in a bug for debian about being able to mount it in the first place :)
Mike
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs