LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-09-2007, 07:30 AM   #1
lovelylinux
LQ Newbie
 
Registered: Dec 2006
Posts: 17

Rep: Reputation: 0
Thumbs up Some /etc/samba/smb.conf file specification in SuSE 10.1


Hi To All,

I am working with SuSE 10.1

I am having file /etc/samba/smb.conf which is as per follows:

/************************************************** ************************************************/

# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2006-05-02

[global]
workgroup = TUX-NET
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:

[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes

[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700

[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/

[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes

[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775

/************************************************** *************************************************/

Now I could not understand some meanings over here ...

at [homes] what is the meaning of valid users = %S, %D%w%S
what %S, %D%w%S means ?

at [profiles] what is the meaning of path = %H
what %H means ?

I have to use this terms for analysis purpose .

So Please help me ....

Thanks in Advance ...
 
Old 07-10-2007, 07:10 PM   #2
rtspitz
Member
 
Registered: Jan 2005
Location: germany
Distribution: suse, opensuse, debian, others for testing
Posts: 307

Rep: Reputation: 33
man smb.conf

search for "VARIABLE SUBSTITUTIONS"

%S the name of the current service, if any
%D name of the domain or workgroup of the current user
%w the winbind separator
%H the home directory of the user given by %u
%U session username (the username that the client wanted, not necessarily the same as the one they got)

so %D%w%S in your case might translate to something like: TUX-NET\some-name-here

look at this:

Code:
only user (S)
          This is a boolean option that controls whether connections with usernames not
          in  the user list will be allowed. By default this option is disabled so that
          a client can supply a username to be used by the server. Enabling this param‐
          eter will force the server to only use the login names from the user list and
          is only really useful in security = share level security.

          Note that this also means Samba won't try to deduce usernames from  the  ser‐
          vice  name.  This can be annoying for the [homes] section. To get around this
          you could use user = %S which means your user list will be just  the  service
          name, which for home directories is the name of the user.
 
  


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 in Debian, smb.conf: smb passwd file = ?????????? henrnorl Linux - Software 1 10-06-2006 09:43 AM
Samba - which smb.conf file? henrnorl Linux - Newbie 4 10-06-2006 07:19 AM
Reinstalling Samba doesn't recover the original /etc/samba/smb.conf Akhran Debian 2 11-11-2005 12:54 AM
samba conf smb.conf regnier Mandriva 5 02-17-2005 04:27 AM
Samba start up questions...Setting up share files and smb.conf file Xeroku Linux - Newbie 1 04-17-2003 10:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:32 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