I cannot open system-config-samba

Asked by Daniel Cornea

I am following this tutorial to have acces on windows 7 shared folders, but I cannot open system-config-samba

Here is the output from terminal

system-config-samba
Traceback (most recent call last):
  File "/usr/sbin/system-config-samba", line 45, in <module>
    mainWindow.MainWindow(debug_flag)
  File "/usr/share/system-config-samba/mainWindow.py", line 82, in __init__
    self.samba_data = sambaParser.SambaParser(self)
  File "/usr/share/system-config-samba/sambaParser.py", line 185, in __init__
    self.parseFile ()
  File "/usr/share/system-config-samba/sambaParser.py", line 225, in parseFile
    token = self.createToken (line, section)
  File "/usr/share/system-config-samba/sambaParser.py", line 310, in createToken
    name, value = line.split ("=", 1)
ValueError: need more than 1 value to unpack

Can please anyone help me?

thank you

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Daniel Cornea
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

If you want to share folders using Samba then use the right click menu in nautilus. It's a lot easier

Revision history for this message
Daniel Cornea (danok-cornea) said :
#2

I do not want to share folders, I want to view shared folders from ubuntu on a windows 7 machine

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Then use:

File -> connect to server

Or in Dash type:

\\servername\sharename

You will obviously need your Windows username and password to authenticate as.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

Once you get access, you can add the location to nautilus favourites using the top right cog on nautilus itself. This gives easy access. Obviously store your credentials to make things super easy

Revision history for this message
Daniel Cornea (danok-cornea) said :
#5

Ok, can you tell me please where do I get servername and sharename,

http://www.liberiangeek.net/2011/10/filesharing-between-windows-and-ubuntu-11-10-oneiric-ocelot/
this is the tutorial I tried to use

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

The server name is the name of the Windows PC and the share name YOU have set when you shared a folder in the Windows OS. How can you connect to a share if you don't know this stuff?

Revision history for this message
Daniel Cornea (danok-cornea) said :
#7

Well it just will not connect, that is why I am asking

Revision history for this message
Manfred Hampl (m-hampl) said :
#8

Your problem might be caused by wrong values in the samba configuration file.

Please provide the output of the following commands:

lsb_release -a
uname -a
apt-cache policy system-config-samba
cat -n /etc/samba/smb.conf
cat -n /usr/share/system-config-samba/smb.conf.template

Revision history for this message
Daniel Cornea (danok-cornea) said :
#9

daniel@daniel-desktop:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 13.04
Release: 13.04
Codename: raring
daniel@daniel-desktop:~$ uname -a
Linux daniel-desktop 3.8.0-30-generic #44-Ubuntu SMP Thu Aug 22 20:54:42 UTC 2013 i686 athlon i686 GNU/Linux
daniel@daniel-desktop:~$ apt-cache policy system-config-samba
system-config-samba:
  Installed: 1.2.63-0ubuntu5
  Candidate: 1.2.63-0ubuntu5
  Version table:
 *** 1.2.63-0ubuntu5 0
        500 http://ro.archive.ubuntu.com/ubuntu/ raring/universe i386 Packages
        100 /var/lib/dpkg/status
daniel@daniel-desktop:~$ cat -n /etc/samba/smb.conf
     1 [global]
     2 netbios name = Samba24
     3 server string = Samba file and print server
     4 workgroup = Workgroup
     5 security = user
     6 hosts allow = 127. 192.168.0.
     7 interfaces = 127.0.0.1/8 192.168.0.0/24
     8 bind interfaces only = yes
     9 remote announce = 192.168.0.255
    10 remote browse sync = 192.168.0.255
    11 printcap name = cups
    12 ; load printers = yes
    13 cups options = raw
    14 ; printing = cups
    15 guest account = smbguest
    16 log file = /var/log/samba/samba.log
    17 max log size = 1000
    18 ; null passwords = yes
    19 username level = 6
    20 password level = 6
    21 ; encrypt passwords = yes
    22 unix password sync = yes
    23 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
    24 local master = no
    25 domain master = no
    26 ; preferred master = no
    27 ; domain logons = no
    28 os level = 33
    29 logon drive = m:
    30 logon home = \\%L\homes\%u
    31 logon path = \\%L\profiles\%u
    32 logon script = %G.bat
    33 ; time server = no
    34 name resolve order = wins lmhosts bcast
    35 ; wins support = no
    36 ; wins proxy = no
    37 dns proxy = no
    38 ; preserve case = yes
    39 ; short preserve case = yes
    40 client use spnego = no
    41 client signing = no
    42 client schannel = no
    43 ; server signing = no
    44 server schannel = no
    45 ; nt pipe support = yes
    46 ; nt status support = yes
    47 allow trusted domains = no
    48 obey pam restrictions = yes
    49 enable spoolss = yes
    50 ; client plaintext auth = no
    51 ; disable netbios = no
    52 follow symlinks = no
    53 update encrypted = yes
    54 ; pam password change = no
    55 passwd chat timeout = 120
    56 ; hostname lookups = no
    57 username map = /etc/samba/smbusers
    58 ; passdb backend = tdbsam
    59 passwd program = /usr/bin/passwd '%u'
    60 passwd chat = *New*password* %n\n *ReType*new*password* %n\n *passwd*changed*\n
    61 add user script = /usr/sbin/useradd -d /dev/null -c 'Samba User Account' -s /dev/null '%u'
    62 add user to group script = /usr/sbin/useradd -d /dev/null -c 'Samba User Account' -s /dev/null -g '%g' '%u'
    63 add group script = /usr/sbin/groupadd '%g'
    64 delete user script = /usr/sbin/userdel '%u'
    65 delete user from group script = /usr/sbin/userdel '%u' '%g'
    66 delete group script = /usr/sbin/groupdel '%g'
    67 add machine script = /usr/sbin/useradd -d /dev/null -g sambamachines -c 'Samba Machine Account' -s /dev/null -M '%u'
    68 machine password timeout = 120
    69 idmap uid = 16777216-33554431
    70 idmap gid = 16777216-33554431
    71 template shell = /dev/null
    72 winbind use default domain = yes
    73 winbind separator = @
    74 winbind cache time = 360
    75 winbind trusted domains only = yes
    76 winbind nested groups = no
    77 winbind nss info = no
    78 ; winbind refresh tickets = no
    79 ; winbind offline logon = no
    80
    81 realm = localdomain
    82 server role = domain controller
    83 [homes]
    84 comment = Home Directories
    85 path = /home
    86 valid users = %U
    87 read only = no
    88 ; available = yes
    89 ; browseable = yes
    90 ; guest ok = no
    91 ; printable = no
    92 locking = no
    93 strict locking = no
    94
    95 [netlogon]
    96 comment = Network Logon Service
    97 path = /var/lib/samba/netlogon
    98 read only = no
    99 ; available = yes
   100 ; browseable = yes
   101 ; guest ok = no
   102 ; printable = no
   103 locking = no
   104 strict locking = no
   105
   106 [profiles]
   107 comment = User Profiles
   108 path = /var/lib/samba/profiles
   109 ; writeable = no
   110 ; available = yes
   111 ; browseable = yes
   112 ; printable = no
   113 create mode = 0600
   114 directory mask = 0700
   115 locking = no
   116 strict locking = no
   117 valid users = Ignoring unknown parameter "update encrypted"
   118 , root, smbguest
   119
   120 [printers]
   121 comment = All Printers
   122 path = /var/spool/samba
   123 ; browseable = yes
   124 ; writable = no
   125 ; guest ok = no
   126 printable = yes
   127 locking = no
   128 strict locking = no
   129
   130 [pdf-documents]
   131 path = /var/lib/samba/pdf-documents
   132 comment = Converted PDF Documents
   133 admin users = %U
   134 ; available = yes
   135 ; browseable = yes
   136 writeable = yes
   137 guest ok = yes
   138 locking = no
   139 strict locking = no
   140
   141 [pdf-printer]
   142 path = /tmp
   143 comment = PDF Printer Service
   144 printable = yes
   145 guest ok = yes
   146 use client driver = yes
   147 printing = bsd
   148 print command = /usr/bin/gadmin-samba-pdf %s %u
   149 lpq command =
   150 lprm command =
   151 [sysvol]
   152 path = /var/lib/samba/sysvol
   153 read only = no
   154
daniel@daniel-desktop:~$ cat -n /usr/share/system-config-samba/smb.conf.template 1 # This is the main Samba configuration file. You should read the
     2 # smb.conf(5) manual page in order to understand the options listed
     3 # here. Samba has a huge number of configurable options (perhaps too
     4 # many!) most of which are not shown in this example
     5 #
     6 # Any line which starts with a ; (semi-colon) or a # (hash)
     7 # is a comment and is ignored. In this example we will use a #
     8 # for commentry and a ; for parts of the config file that you
     9 # may wish to enable
    10 #
    11 # NOTE: Whenever you modify this file you should run the command "testparm"
    12 # to check that you have not made any basic syntactic errors.
    13 #
    14 #======================= Global Settings =====================================
    15 [global]
    16
    17 # workgroup = NT-Domain-Name or Workgroup-Name
    18 workgroup = MYGROUP
    19
    20 # server string is the equivalent of the NT Description field
    21 server string = Samba Server
    22
    23 # This option is important for security. It allows you to restrict
    24 # connections to machines which are on your local network. The
    25 # following example restricts access to two C class networks and
    26 # the "loopback" interface. For more examples of the syntax see
    27 # the smb.conf man page
    28 ; hosts allow = 192.168.1. 192.168.2. 127.
    29
    30 # if you want to automatically load your printer list rather
    31 # than setting them up individually then you'll need this
    32 printcap name = /etc/printcap
    33 load printers = yes
    34
    35 # It should not be necessary to spell out the print system type unless
    36 # yours is non-standard. Currently supported print systems include:
    37 # bsd, sysv, plp, lprng, aix, hpux, qnx
    38 ; printing = cups
    39
    40 # This option tells cups that the data has already been rasterized
    41 cups options = raw
    42
    43 # Uncomment this if you want a guest account, you must add this to /etc/passwd
    44 # otherwise the user "nobody" is used
    45 ; guest account = pcguest
    46
    47 # this tells Samba to use a separate log file for each machine
    48 # that connects
    49 log file = /var/log/samba/%m.log
    50 # all log information in one file
    51 # log file = /var/log/samba/smbd.log
    52
    53 # Put a capping on the size of the log files (in Kb).
    54 max log size = 50
    55
    56 # Security mode. Most people will want user level security. See
    57 # security_level.txt for details.
    58 security = user
    59 # Use password server option only with security = server
    60 ; password server = <NT-Server-Name>
    61
    62 # Password Level allows matching of _n_ characters of the password for
    63 # all combinations of upper and lower case.
    64 ; password level = 8
    65 ; username level = 8
    66
    67 # You may wish to use password encryption. Please read
    68 # ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
    69 # Do not enable this option unless you have read those documents
    70 ; encrypt passwords = yes
    71 ; smb passwd file = /etc/samba/smbpasswd
    72
    73 # The following are needed to allow password changing from Windows to
    74 # update the Linux system password also.
    75 # NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
    76 # NOTE2: You do NOT need these to allow workstations to change only
    77 # the encrypted SMB passwords. They allow the Unix password
    78 # to be kept in sync with the SMB password.
    79 ; unix password sync = Yes
    80 ; passwd program = /usr/bin/passwd %u
    81 ; passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
    82
    83 # Unix users can map to different SMB User names
    84 ; username map = /etc/samba/smbusers
    85
    86 # Using the following line enables you to customise your configuration
    87 # on a per machine basis. The %m gets replaced with the netbios name
    88 # of the machine that is connecting
    89 ; include = /etc/samba/smb.conf.%m
    90
    91 # Most people will find that this option gives better performance.
    92 # See speed.txt and the manual pages for details
    93 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
    94
    95 # Configure Samba to use multiple interfaces
    96 # If you have multiple network interfaces then you must list them
    97 # here. See the man page for details.
    98 ; interfaces = 192.168.12.2/24 192.168.13.2/24
    99
   100 # Configure remote browse list synchronisation here
   101 # request announcement to, or browse list sync from:
   102 # a specific host or from / to a whole subnet (see below)
   103 ; remote browse sync = 192.168.3.25 192.168.5.255
   104 # Cause this host to announce itself to local subnets here
   105 ; remote announce = 192.168.1.255 192.168.2.44
   106
   107 # Browser Control Options:
   108 # set local master to no if you don't want Samba to become a master
   109 # browser on your network. Otherwise the normal election rules apply
   110 ; local master = no
   111
   112 # OS Level determines the precedence of this server in master browser
   113 # elections. The default value should be reasonable
   114 ; os level = 33
   115
   116 # Domain Master specifies Samba to be the Domain Master Browser. This
   117 # allows Samba to collate browse lists between subnets. Don't use this
   118 # if you already have a Windows NT domain controller doing this job
   119 ; domain master = yes
   120
   121 # Preferred Master causes Samba to force a local browser election on startup
   122 # and gives it a slightly higher chance of winning the election
   123 ; preferred master = yes
   124
   125 # Enable this if you want Samba to be a domain logon server for
   126 # Windows95 workstations.
   127 ; domain logons = yes
   128
   129 # if you enable domain logons then you may want a per-machine or
   130 # per user logon script
   131 # run a specific logon batch file per workstation (machine)
   132 ; logon script = %m.bat
   133 # run a specific logon batch file per username
   134 ; logon script = %U.bat
   135
   136 # Where to store roving profiles (only for Win95 and WinNT)
   137 # %L substitutes for this servers netbios name, %U is username
   138 # You must uncomment the [Profiles] share below
   139 ; logon path = \\%L\Profiles\%U
   140
   141 # All NetBIOS names must be resolved to IP Addresses
   142 # 'Name Resolve Order' allows the named resolution mechanism to be specified
   143 # the default order is "host lmhosts wins bcast". "host" means use the unix
   144 # system gethostbyname() function call that will use either /etc/hosts OR
   145 # DNS or NIS depending on the settings of /etc/host.config, /etc/nsswitch.conf
   146 # and the /etc/resolv.conf file. "host" therefore is system configuration
   147 # dependant. This parameter is most often of use to prevent DNS lookups
   148 # in order to resolve NetBIOS names to IP Addresses. Use with care!
   149 # The example below excludes use of name resolution for machines that are NOT
   150 # on the local network segment
   151 # - OR - are not deliberately to be known via lmhosts or via WINS.
   152 ; name resolve order = wins lmhosts bcast
   153
   154 # Windows Internet Name Serving Support Section:
   155 # WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
   156 ; wins support = yes
   157
   158 # WINS Server - Tells the NMBD components of Samba to be a WINS Client
   159 # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
   160 ; wins server = w.x.y.z
   161
   162 # WINS Proxy - Tells Samba to answer name resolution queries on
   163 # behalf of a non WINS capable client, for this to work there must be
   164 # at least one WINS Server on the network. The default is NO.
   165 ; wins proxy = yes
   166
   167 # DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
   168 # via DNS nslookups. The built-in default for versions 1.9.17 is yes,
   169 # this has been changed in version 1.9.18 to no.
   170 dns proxy = no
   171
   172 # Case Preservation can be handy - system default is _no_
   173 # NOTE: These can be set on a per share basis
   174 ; preserve case = no
   175 ; short preserve case = no
   176 # Default case is normally upper case for all DOS files
   177 ; default case = lower
   178 # Be very careful with case sensitivity - it can break things!
   179 ; case sensitive = no
   180
   181 #============================ Share Definitions ==============================
   182 [homes]
   183 comment = Home Directories
   184 browseable = no
   185 writable = yes
   186
   187 # Un-comment the following and create the netlogon directory for Domain Logons
   188 ; [netlogon]
   189 ; comment = Network Logon Service
   190 ; path = /home/netlogon
   191 ; guest ok = yes
   192 ; writable = no
   193 ; share modes = no
   194
   195
   196 # Un-comment the following to provide a specific roving profile share
   197 # the default is to use the user's home directory
   198 ;[Profiles]
   199 ; path = /home/profiles
   200 ; browseable = no
   201 ; guest ok = yes
   202
   203
   204 # NOTE: If you have a BSD-style print system there is no need to
   205 # specifically define each individual printer
   206 [printers]
   207 comment = All Printers
   208 path = /var/spool/samba
   209 browseable = no
   210 # Set public = yes to allow user 'guest account' to print
   211 guest ok = no
   212 writable = no
   213 printable = yes
   214
   215 # This one is useful for people to share files
   216 ;[tmp]
   217 ; comment = Temporary file space
   218 ; path = /tmp
   219 ; read only = no
   220 ; public = yes
   221
   222 # A publicly accessible directory, but read only, except for people in
   223 # the "staff" group
   224 ;[public]
   225 ; comment = Public Stuff
   226 ; path = /home/samba
   227 ; public = yes
   228 ; read only = yes
   229 ; write list = @staff
   230
   231 # Other examples.
   232 #
   233 # A private printer, usable only by fred. Spool data will be placed in fred's
   234 # home directory. Note that fred must have write access to the spool directory,
   235 # wherever it is.
   236 ;[fredsprn]
   237 ; comment = Fred's Printer
   238 ; valid users = fred
   239 ; path = /homes/fred
   240 ; printer = freds_printer
   241 ; public = no
   242 ; writable = no
   243 ; printable = yes
   244
   245 # A private directory, usable only by fred. Note that fred requires write
   246 # access to the directory.
   247 ;[fredsdir]
   248 ; comment = Fred's Service
   249 ; path = /usr/somewhere/private
   250 ; valid users = fred
   251 ; public = no
   252 ; writable = yes
   253 ; printable = no
   254
   255 # a service which has a different directory for each machine that connects
   256 # this allows you to tailor configurations to incoming machines. You could
   257 # also use the %u option to tailor it by user name.
   258 # The %m gets replaced with the machine name that is connecting.
   259 ;[pchome]
   260 ; comment = PC Directories
   261 ; path = /usr/pc/%m
   262 ; public = no
   263 ; writable = yes
   264
   265 # A publicly accessible directory, read/write to all users. Note that all files
   266 # created in the directory by users will be owned by the default user, so
   267 # any user with access can delete any other user's files. Obviously this
   268 # directory must be writable by the default user. Another user could of course
   269 # be specified, in which case all files would be owned by that user instead.
   270 ;[public]
   271 ; path = /usr/somewhere/else/public
   272 ; public = yes
   273 ; only guest = yes
   274 ; writable = yes
   275 ; printable = no
   276
   277 # The following two entries demonstrate how to share a directory so that two
   278 # users can place files there that will be owned by the specific users. In this
   279 # setup, the directory should be writable by both users and should have the
   280 # sticky bit set on it to prevent abuse. Obviously this could be extended to
   281 # as many users as required.
   282 ;[myshare]
   283 ; comment = Mary's and Fred's stuff
   284 ; path = /usr/somewhere/shared
   285 ; valid users = mary fred
   286 ; public = no
   287 ; writable = yes
   288 ; printable = no
   289 ; create mask = 0765
   290
   291
daniel@daniel-desktop:~$

Revision history for this message
Manfred Hampl (m-hampl) said :
#10

It seems that lines 149 and 150 of /etc/samba/smb.conf do not contain a value for the items. Maybe this is causing problems.

Try the following:

open a terminal and issue the command
gksudo gksudo gedit /etc/samba/smb.conf
Provide your password when asked so, and an editor with your samba config file will open.
Scroll down to line 149 and put a '#' character in front of the two lines

lpq command =
lprm command =

making them

# lpq command =
# lprm command =

Save the file and close the editor, and then try running system-config-samba again.

Revision history for this message
Daniel Cornea (danok-cornea) said :
#11

No it did not work, thank you for your answer, but I still need help

Revision history for this message
Manfred Hampl (m-hampl) said :
#12

I just see that the error must be line 117 and/or 118

   117 valid users = Ignoring unknown parameter "update encrypted"
   118 , root, smbguest

Edit smb.conf as described before, but put a # character at the beginning of line 118,
(you might as well undo the previous change) and try again.

Revision history for this message
Daniel Cornea (danok-cornea) said :
#13

Did it, still it does not work, thank you for your time, but still I need an answer thank you again

Revision history for this message
Manfred Hampl (m-hampl) said :
#14

I am quite sure that the traceback in your problem report indicates a syntactical error in the samba config file.

Please try again:

1. execute "system-config-samba --debug" from a terminal
2. execute "cat -n /etc/samba/smb.conf"
3. copy/paste all output into this question document

Revision history for this message
Daniel Cornea (danok-cornea) said :
#15

system-config-samba --debug
Traceback (most recent call last):
  File "/usr/sbin/system-config-samba", line 45, in <module>
    mainWindow.MainWindow(debug_flag)
  File "/usr/share/system-config-samba/mainWindow.py", line 82, in __init__
    self.samba_data = sambaParser.SambaParser(self)
  File "/usr/share/system-config-samba/sambaParser.py", line 185, in __init__
    self.parseFile ()
  File "/usr/share/system-config-samba/sambaParser.py", line 225, in parseFile
    token = self.createToken (line, section)
  File "/usr/share/system-config-samba/sambaParser.py", line 310, in createToken
    name, value = line.split ("=", 1)
ValueError: need more than 1 value to unpack
daniel@daniel-desktop:~$ cat -n /etc/samba/smb.conf
     1 [global]
     2 netbios name = Samba24
     3 server string = Samba file and print server
     4 workgroup = Workgroup
     5 security = user
     6 hosts allow = 127. 192.168.0.
     7 interfaces = 127.0.0.1/8 192.168.0.0/24
     8 bind interfaces only = yes
     9 remote announce = 192.168.0.255
    10 remote browse sync = 192.168.0.255
    11 printcap name = cups
    12 ; load printers = yes
    13 cups options = raw
    14 ; printing = cups
    15 guest account = smbguest
    16 log file = /var/log/samba/samba.log
    17 max log size = 1000
    18 ; null passwords = yes
    19 username level = 6
    20 password level = 6
    21 ; encrypt passwords = yes
    22 unix password sync = yes
    23 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
    24 local master = no
    25 domain master = no
    26 ; preferred master = no
    27 ; domain logons = no
    28 os level = 33
    29 logon drive = m:
    30 logon home = \\%L\homes\%u
    31 logon path = \\%L\profiles\%u
    32 logon script = %G.bat
    33 ; time server = no
    34 name resolve order = wins lmhosts bcast
    35 ; wins support = no
    36 ; wins proxy = no
    37 dns proxy = no
    38 ; preserve case = yes
    39 ; short preserve case = yes
    40 client use spnego = no
    41 client signing = no
    42 client schannel = no
    43 ; server signing = no
    44 server schannel = no
    45 ; nt pipe support = yes
    46 ; nt status support = yes
    47 allow trusted domains = no
    48 obey pam restrictions = yes
    49 enable spoolss = yes
    50 ; client plaintext auth = no
    51 ; disable netbios = no
    52 follow symlinks = no
    53 update encrypted = yes
    54 ; pam password change = no
    55 passwd chat timeout = 120
    56 ; hostname lookups = no
    57 username map = /etc/samba/smbusers
    58 ; passdb backend = tdbsam
    59 passwd program = /usr/bin/passwd '%u'
    60 passwd chat = *New*password* %n\n *ReType*new*password* %n\n *passwd*changed*\n
    61 add user script = /usr/sbin/useradd -d /dev/null -c 'Samba User Account' -s /dev/null '%u'
    62 add user to group script = /usr/sbin/useradd -d /dev/null -c 'Samba User Account' -s /dev/null -g '%g' '%u'
    63 add group script = /usr/sbin/groupadd '%g'
    64 delete user script = /usr/sbin/userdel '%u'
    65 delete user from group script = /usr/sbin/userdel '%u' '%g'
    66 delete group script = /usr/sbin/groupdel '%g'
    67 add machine script = /usr/sbin/useradd -d /dev/null -g sambamachines -c 'Samba Machine Account' -s /dev/null -M '%u'
    68 machine password timeout = 120
    69 idmap uid = 16777216-33554431
    70 idmap gid = 16777216-33554431
    71 template shell = /dev/null
    72 winbind use default domain = yes
    73 winbind separator = @
    74 winbind cache time = 360
    75 winbind trusted domains only = yes
    76 winbind nested groups = no
    77 winbind nss info = no
    78 ; winbind refresh tickets = no
    79 ; winbind offline logon = no
    80
    81 realm = localdomain
    82 server role = domain controller
    83 [homes]
    84 comment = Home Directories
    85 path = /home
    86 valid users = %U
    87 read only = no
    88 ; available = yes
    89 ; browseable = yes
    90 ; guest ok = no
    91 ; printable = no
    92 locking = no
    93 strict locking = no
    94
    95 [netlogon]
    96 comment = Network Logon Service
    97 path = /var/lib/samba/netlogon
    98 read only = no
    99 ; available = yes
   100 ; browseable = yes
   101 ; guest ok = no
   102 ; printable = no
   103 locking = no
   104 strict locking = no
   105
   106 [profiles]
   107 comment = User Profiles
   108 path = /var/lib/samba/profiles
   109 ; writeable = no
   110 ; available = yes
   111 ; browseable = yes
   112 ; printable = no
   113 create mode = 0600
   114 directory mask = 0700
   115 locking = no
   116 strict locking = no
   117 #valid users = Ignoring unknown parameter "update encrypted"
   118 , root, smbguest
   119
   120 [printers]
   121 comment = All Printers
   122 path = /var/spool/samba
   123 ; browseable = yes
   124 ; writable = no
   125 ; guest ok = no
   126 printable = yes
   127 locking = no
   128 strict locking = no
   129
   130 [pdf-documents]
   131 path = /var/lib/samba/pdf-documents
   132 comment = Converted PDF Documents
   133 admin users = %U
   134 ; available = yes
   135 ; browseable = yes
   136 writeable = yes
   137 guest ok = yes
   138 locking = no
   139 strict locking = no
   140
   141 [pdf-printer]
   142 path = /tmp
   143 comment = PDF Printer Service
   144 printable = yes
   145 guest ok = yes
   146 use client driver = yes
   147 printing = bsd
   148 print command = /usr/bin/gadmin-samba-pdf %s %u
   149 lpq command =
   150 lprm command =
   151 [sysvol]
   152 path = /var/lib/samba/sysvol
   153 read only = no
   154

Revision history for this message
Manfred Hampl (m-hampl) said :
#16

There is still the syntax error in lines 117/118

Put a '#' sign also at the beginning of line 118 making it

#valid users = Ignoring unknown parameter "update encrypted"
#, root, smbguest

Revision history for this message
Daniel Cornea (danok-cornea) said :
#17

finnaly that helped, I could open the configuration gui, however, I could not connect to my windows machine, I guess I shall open another topic

Revision history for this message
Manfred Hampl (m-hampl) said :
#18

Maybe you have to use admin privileges for system-config-samba to have an effect, try

sudo system-config-samba