[rhn-users] Mounting Linux from Windows

Marty Merrick MMerrick at idleaire.com
Fri Jun 24 17:57:32 UTC 2005


Here's the command I use on RH:

smbmount //WindowsServer/share_to_mount /home/users_home/mount_point_dir
-o username=username,uid=500,gid=500

The benefit of doing it this way is you can allow each (non-root) user
control over which shares they mount. Have them create a mount point
directory in their home directory. 

You will need to set the sticky bit on  /usr/bin/smbmnt (as root) as
well: chmod +s /usr/bin/smbmnt

After that the (non-root) user can run the smbmount command as above.

Cheers,
Marty


On Fri, 2005-06-24 at 10:10 -0700, Clinton Fernandes wrote:

> In linux:
> 
> mount -t smbfs -o username=<username> <also any other options here> //<windows
> machine name>/<path to mount> /mnt/<mount point>
> 
> the -o is for options. Usually for windows you'll need to supply a windows
> username to gain access to the shared folder. (It'll ask for a password too).
> 
> `man mount` should provide other available options.
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/rhn-users/attachments/20050624/e0fd7415/attachment.htm>


More information about the rhn-users mailing list