How to mount Samba share in linux

Taking care of your Linux box.

How to mount Samba share in linux

Postby mudasir » Mon Jan 26, 2009 10:10 pm

AOA,

Dear LP Members,

I am facing a bit issue regarding mounting Samba share on a linux box.

I have shared few Directories using my Samba Server on FC9.

Now i am trying to use them in my network on FC9, i know it can be used with smbmount, however the issue is smbmount command is not available on FC9. I tried it with "yum -y install ssamba*", even then nothing came up.

I can use the share using smbclient command, but a normal person dont know about this command and how to use it.

Please help me out.

One more thing, can any one tell me how can i share a printer from Windows XP to Linux, i know how to share printer from Linux to Windows.
Kind Regards
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com
mudasir
Captain
 
Posts: 565
Joined: Tue Oct 17, 2006 5:23 am
Website: http://www.crystalnetworks.org
Location: Dubai

Re: How to mount Samba share in linux

Postby LinuxFreaK » Wed Jan 28, 2009 10:02 am

Dear mudasir,
Salam,

mudasir wrote:"yum -y install ssamba*"


I think you should try this command.

# yum -y install samba

Best Regards.
Farrukh Ahmed
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Postby mudasir » Wed Jan 28, 2009 1:13 pm

AOA,

Dear Farrukh bhai,

I tried that command also, still no progress. I searched for the RPM containing smbmount, and downloaded that rpm and installed it, still its not available.

Please help me out.
Kind Regards
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com
mudasir
Captain
 
Posts: 565
Joined: Tue Oct 17, 2006 5:23 am
Website: http://www.crystalnetworks.org
Location: Dubai

How to Simple File Sharing with Samba on Fedora 9

Postby dev/null » Wed Jan 28, 2009 4:42 pm

AOA
Here is the solution for Simple File Sharing on Fedora 9


Packages Required:

*** nautilus-share
===============================================

root@shani.lp.pk:~$ yum install nautilus-share

[After installation is completed, issue the following commands]

root@shani.lp.pk:~$ mkdir /usr/local/samba/lib/usershares -p

root@shani.lp.pk:~$ chgrp yourusername /usr/local/samba/lib/usershares

[change yourusername with your actual user name.]

root@shani.lp.pk:~$ chmod 1770 /usr/local/samba/lib/usershares

[Now, we have to add a few lines in /etc/samba/smb.conf. First lets back up the original file.]

root@shani.lp.pk:~$ cp /etc/samba/smb.conf /etc/samba/smb.conf.bak

[Lets open the file and make changes.]

root@shani.lp.pk:~$ vi /etc/samba/smb.conf

[Now navigate to line that says [global], and immediately after this line add the following lines.]

usershare path = /usr/local/samba/lib/usershares
usershare max shares = 10 # (set this as per your requirement)

Now issue the following commands:

root@shani.lp.pk:~$ service smb restart

root@shani.lp.pk:~$ killall nautilus

[Now open nautilus, and right click the folder you wish to share and click Sharing Options. Give a share name and hit OK. You have now shared the folder.]

In Windows, goto Start-->Run and type

\\fedora_system_name\share_name

In Linux. goto Nautilus and in the location bar type

smb://fedora_system_name/share_name


I hope this post will be useful.
dev/null
 

Re:

Postby LinuxFreaK » Tue Feb 03, 2009 9:07 am

Dear mudasir,
Salam,

I think it have something to do with your system configuration. Please check your logs for more information.

Best Regards.
Farrukh Ahmed
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi


Return to “%s” Administration

Who is online

Users browsing this forum: No registered users and 2 guests

cron