Commits

Alfonso de la Guarda Reyes committed 13f5f8a

Changes in samba

  • Participants
  • Parent commits f4742fd

Comments (0)

Files changed (2)

 echo "Privilegios samba"
 net rpc rights grant root SeMachineAccountPrivilege
 setenforce Permissive
+setsebool -P samba_domain_controller on 
 setsebool -P samba_enable_home_dirs on
 setsebool -P samba_export_all_rw on
 
 # specifiy it as a per share option as well
 #
 	workgroup = sisol
-	server string = Samba Server Version %v
+	server string = SISOL PDC Server %v
 	
 	netbios name = SISOLMAIN
 	
 ;	delete user script = /usr/sbin/userdel "%u"
 ;	delete user from group script = /usr/sbin/userdel "%u" "%g"
 ;	delete group script = /usr/sbin/groupdel "%g"
-        add machine script = /usr/sbin/useradd -n -g estaciones -d /dev/null -s /sbin/nologin %u
+        ;add machine script = /usr/sbin/useradd -n -g estaciones -d /dev/null -s /sbin/nologin %u
 	logon script = logon.cmd
 	logon path = \\%L\Profiles\%U
 	logon home = \\%L\%U\.profile
 	passwd chat = *New*password* %u\n *ReType*new*password* %u\n *passwd:*all*authentication*tokens*updated*successfully*
 	socket options = TCP_NODELAY	
 # disables profiles support by specifing an empty path
- 	logon path =          
+ 	;logon path =          
 	log level = 4
 	add user script = /usr/sbin/useradd "%u" -g users 
 	add group script = /usr/sbin/groupadd "%g"
-	add machine script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -c "Cuenta de máquina" -M %u
+	add machine script = /usr/sbin/useradd -d /dev/null -g estaciones -s /bin/false -c "Estacion" -M %u
 	delete user script = /usr/sbin/userdel "%u"
 	delete user from group script = /usr/sbin/userdel "%u" "%g"
 	delete group script = /usr/sbin/groupdel "%g"
 # Preferred Master causes Samba to force a local browser election on startup
 # and gives it a slightly higher chance of winning the election
 	local master = yes
-	os level = 33
+	os level = 64
 	preferred master = yes
 	time server = yes
 	
 	printable = yes
 	
 # Un-comment the following and create the netlogon directory for Domain Logons
-	[netlogon]
+[netlogon]
 	comment = Network Logon Service
 	path = /var/lib/samba/netlogon
 	guest ok = yes
 	
 # Un-comment the following to provide a specific roving profile share
 # the default is to use the user's home directory
-	[Profiles]
+[Profiles]
 	path = /var/lib/samba/profiles
 	browseable = no
 	guest ok = yes
-	
+        writable = yes
 	
 # A publicly accessible directory, but read only, except for people in
 # the "staff" group
-	[system]
+[system]
 	comment = System Values
 	path = /var/lib/samba/share
 	public = yes