Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
General Linux > Samba > Issue <<  34 of 98 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 3518
Last update: 08-06-04
Issue:
How do I mount a Samba share from a terminal window or X-term?
Resolution:
You can mount a Samba share with the following command:
mount -t smbfs -o username=[username],password=[password] //servername/share /mount/point
The -t smbfs denotes a Samba file system type, -o passes the username and password of a user with access to the //servername/share Samba share. This will be mounted on the local system at /mount/point.

To allow normal users to mount their SMB shares smbmnt will need to be installed setuid root. This can be done using the following commands:
chmod +s /usr/bin/smbmnt
chmod +s /usr/bin/smbumount
For further information on this, reference man smbmnt.

A user can then mount and unmount a Samba share they have access to with:
smbmount //server/share /mount/point
smbumount /mount/point
Again, further information can be found through man smbmount.


How well did this entry answer your question?


good wrong incomplete out of date
General Linux > Samba > Issue <<   34  of  98  >>