LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-13-2007, 04:45 PM   #1
terence8888
Member
 
Registered: Aug 2005
Posts: 31

Rep: Reputation: 15
Samba help!


after much fiddling around I finally got a working FC6 running on a Dell C521!

I'm trying to get samba to work.... I can mount /tmp, /etc but whenever I tried to map anything /home (or subdirectory), it does not work.

Here's my smb.conf

workgroup = dubiscos
netbios name = dostoyevsky
server string = Samba Server
security = user
encrypt passwords = yes
local master = no

[tmp]
comment = temp Directories
path = /tmp
browseable = yes
writable = yes
[home]
comment = Home Directories
path = /home/annie
browseable = yes
writable = yes

[xxx]
comment = xxx Directories
path = /xxx
browseable = yes
writable = yes
[etc]
comment = etc Directories
path = /etc
browseable = yes
writable = yes
[qqqq]
comment = qqqq Directories
path = /home/qqqq
browseable = yes
writable = yes

If I do a smbstatus, I get:

Samba version 3.0.23c-2
PID Username Group Machine
-------------------------------------------------------------------
27645 annie users hesse (192.168.0.201)

Service pid machine Connected at
-------------------------------------------------------
tmp 27645 hesse Sun May 13 22:44:16 2007

Locked files:
Pid Uid DenyMode Access R/W Oplock SharePath Name Time
--------------------------------------------------------------------------------------------------
27645 501 DENY_NONE 0x100001 RDONLY NONE /tmp . Sun May 13 22:44:16 2007
27645 501 DENY_NONE 0x100001 RDONLY NONE /tmp . Sun May 13 22:44:16 2007

So I take it that Samba sees the user annie OK. But I cannot mount (or map in XP) the samba drive.

Any help MUCH appreciated!
 
Old 05-13-2007, 08:59 PM   #2
TheLateJC
Member
 
Registered: Apr 2007
Location: Sydney
Distribution: Debian. (Formerly Slackware, Gentoo, RHEL, and Suse)
Posts: 80

Rep: Reputation: 15
There is a special section for home directories.

http://samba.org/samba/docs/man/manp...mb.conf.5.html
The [homes] section

If a section called [homes] is included in the configuration file, services connecting clients to their home directories can be created on the fly by the server.
When the connection request is made, the existing sections are scanned. If a match is found, it is used. If no match is found, the requested section name is treated as a username and looked up in the local password file. If the name exists and the correct password has been given, a share is created by cloning the [homes] section.
Some modifications are then made to the newly created share:
  • The share name is changed from homes to the located username.
  • If no path was given, the path is set to the user's home directory.
If you decide to use a path = line in your [homes] section, it may be useful to use the %S macro. For example:
path = /data/pchome/%S is useful if you have different home directories for your PCs than for UNIX access.
This is a fast and simple way to give a large number of clients access to their home directories with a minimum of fuss.
A similar process occurs if the requested section name is “homes”, except that the share name is not changed to that of the requesting user. This method of using the [homes] section works well if different users share a client PC.
The [homes] section can specify all the parameters a normal service section can specify, though some make more sense than others. The following is a typical and suitable [homes] section:
[homes] read only = no

An important point is that if guest access is specified in the [homes] section, all home directories will be visible to all clients without a password. In the very unlikely event that this is actually desirable, it is wise to also specify read only access.
The browseable flag for auto home directories will be inherited from the global browseable flag, not the [homes] browseable flag. This is useful as it means setting browseable = no in the [homes] section will hide the [homes] share but make any auto home directories visible.
 
Old 05-13-2007, 09:51 PM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I haven't really read you post, but Samba on FC suggests SELinux issue.

Try from terminal

setenforce 0

and see if it works. Somewhere in teh security settings you can disable SELinux sor smb processes, but I don't use the gui
 
Old 05-15-2007, 02:56 PM   #4
terence8888
Member
 
Registered: Aug 2005
Posts: 31

Original Poster
Rep: Reputation: 15
disabling SELINUX works! Thanks!
 
Old 05-15-2007, 03:22 PM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Often happens. Did you find the settings to only disable it for smbd?
 
Old 05-15-2007, 08:30 PM   #6
flyscan
LQ Newbie
 
Registered: Apr 2007
Posts: 4

Rep: Reputation: 0
SELINUX already affect some servers work.
 
Old 05-16-2007, 03:31 AM   #7
terence8888
Member
 
Registered: Aug 2005
Posts: 31

Original Poster
Rep: Reputation: 15
I did not selectively disable SELINUX for smb... simply diabled SELINUX altoghther... I used the GUI which comes with FC6 ....

THANKS again!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
Samba domain member server (DMS) group permissions in network with a Samba PDC srosa Linux - Networking 0 05-01-2006 05:55 PM
I need the content from thegoldenear.org/toolbox/unices/samba/samba-setup.html rtg2001 Linux - Networking 1 08-05-2004 05:54 PM
Samba: Authenticate Linux-Clients in Samba Domain & Mount mule Linux - Software 0 12-10-2003 01:21 AM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 05:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration