Hi. I've been at it for a solid week now....trying to figure out how to mount a smbfs-resource at boot. See i need to do the following; mount -t smbfs //<machine_name>/<share> /home/<usr_name>/music ...only thing is, I have to run the cmd as a regular user. The easiest thing would offcourse be to have i run at when booting, but i don't know how to do that. Any help to get from you guys? Another possibility would be to make the mount-cmd usable by regular users so that they could mount the shares themselves, but this also seems quite near impossible to do. So...any tips/idea? Best regards Torger ?ge Sinnes
On Sun, 2003-01-05 at 22:18, Torger ?ge Sinnes wrote:> Hi. > > I've been at it for a solid week now....trying to figure out how tomount a> smbfs-resource at boot. See i need to do the following; > > mount -t smbfs //<machine_name>/<share> /home/<usr_name>/music > > So...any tips/idea?Easy way is to mount it using the fstab (/etc/fstab) try adding the following line (it's meant to be just one line) //<machine_name>/<share> /home/<usr_name>/music smbfs username=****,password=**** 0,0 This would auto mount it on boot up, the username and password are optional, uid (user it's mounted for), gid (group it's mounted for) and all the other standard mount options are also available. The users option would allow users to mount/unmount/remount the share. Don't worry about the 0,0 means, they're for the dump and fsck commands. Mark
On Sun, 2003-01-05 at 22:18, Torger ?ge Sinnes wrote:> Hi. > > I've been at it for a solid week now....trying to figure out how to mount a > smbfs-resource at boot. See i need to do the following; > > mount -t smbfs //<machine_name>/<share> /home/<usr_name>/music > > So...any tips/idea?Easy way is to mount it using the fstab (/etc/fstab) try adding the following line //<machine_name>/<share> /home/<usr_name>/music smbfs username=****,password=**** 0,0 This would auto mount it on boot up, the username and password are optional, uid (user it's mounted for), gid (group it's mounted for) and all the other standard mount options are also available. The users option would allow users to mount/unmount/remount the share. Don't worry about the 0,0 means, they're for the dump and fsck commands. Mark
On Sunday 05 January 2003 22:18, Torger ?ge Sinnes wrote:> Hi. > > mount -t smbfs //<machine_name>/<share> /home/<usr_name>/music > > ...only thing is, I have to run the cmd as a regular user. The easiest > thing would offcourse be to have i run at when booting, but i don't know > how to do that. Any help to get from you guys? Another possibility would be > to make the mount-cmd usable by regular users so that they could mount the > shares themselves, but this also seems quite near impossible to do. >Try sudo. Put a line into sudoers that allows your users to only use the command mount -t smbfs //<machine_name>/<share> /home/<usr_name>/music Or put the command into /etc/rc.conf.local. Or whatever your distribution/OS's equivalent of that is Both of course assume that you do have root privlege on the machine in question... mark
On January 6, gordonp@sfu.ca said:> On Mon, 2003-01-06 at 03:07, Ronan Waide wrote: > > > noauto,user > > only root can unmount these partitions after they've been mounted. > > You could try using the parameter "users", not "user" (the difference > is only the letter 's'). This should allow a regular user to umount...Yup, that works, but that allows *any* user to unmount. The original poster didn't clarify the exact purpose of this mount, but I would suspect that having someone else unmount your share isn't a good thing. Cheers, Waider. -- waider@waider.ie / Yes, it /is/ very personal of me. "The electronic universe shall be mine, all mine, once I've finished mowing the lawn of course." - Mal MacCarthy