Samba

The place to post if you need help or advice

Moderators: ChrisThornett, LXF moderators

Samba

Postby grogoreo » Tue May 17, 2005 8:56 pm

hi

I've started again, after a few months laving it, to try and sort a PDC using Samba. I'm sorry for another Samba question as I allways see them and am sure your sick of them! I can get to a point where I am able to enter a username and password to get onto the domain, but it will then tell me Access Denied. Here is my jumbled (Debian default config plus stuff I put in from How To's):

Code: Select all

[global]

   workgroup = INTERCONNECT


   

add maching script = /usr/sbin/useradd -d /var/lib/nobody -g 100 -s /bin/false -M $u

logon drive = l:
logon home = \\GSERVE-1\%U


domain logons = yes

local master = yes

os level = 65

preferred master = yes

WINS Server
;   wins support = no

;   wins server = w.x.y.z

   dns proxy = no

;   name resolve order = lmhosts host wins bcast


   log file = /var/log/samba/log.%m

   max log size = 1000

;   syslog only = no

   syslog = 0

   panic action = /usr/share/samba/panic-action %d


   security = user

   encrypt passwords = true
   smb passwd file = /etc/samba/smbpasswd

   passdb backend = tdbsam guest

   obey pam restrictions = yes

;   guest account = nobody
   invalid users = root

   unix password sync = yes

   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .

;   pam password change = no


   load printers = yes

;   printing = bsd
;   printcap name = /etc/printcap

   printing = cups
   printcap name = cups

   printer admin = @ntadmin


;   preserve case = yes
;   short preserve case = yes


;   include = /home/samba/etc/smb.conf.%m

   socket options = TCP_NODELAY

;   message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &

   domain master = yes

;   idmap uid = 10000-20000
;   idmap gid = 10000-20000
;   template shell = /bin/bash

wins support = no
[homes]
   comment = Home Directories
   browseable = no
   writable = yes
   valid users = %S
   read only = no
   create mode = 0600
   directory mode = 0700

[profiles]
   create mode = 0600
   directory mode = 0700
   path = /home/samba/profiles
   profile acls = yes
   read only = no
   writable - yes

[netlogon]
   comment = Network Logon Service
   path = /home/samba/netlogon
   guest ok = yes
   writable = no
   share modes = no

[printers]
   comment = All Printers
   browseable = no
   path = /tmp
   printable = yes
   public = no
   writable = no
   create mode = 0700

[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no
   write list = root, @ntadmin

[cdrom]
   comment = Samba server's CD-ROM
   writable = no
   locking = no
   path = /cdrom
   public = yes


   preexec = /bin/mount /cdrom
   postexec = /bin/umount /cdrom


[Link Removed]

I have created a smbpasswd file using the touch command and put it in /etc/samba/. I have used smbpasswd to add users, grogoreo and root and also:

useradd �g smbuser �d /dev/null -�s /dev/null ntclient$
smbpasswd �a �m ntclient~$

I put ~$ at the end because I went onto Users and Groups, Gnome, and it was on there.

Any ideas? I'm using Debian Sarge


Thanks,
Greg
grogoreo
 
Posts: 11
Joined: Tue Apr 12, 2005 6:46 pm
Location: www.grogoreo.co.uk

Return to Help!

Who is online

Users browsing this forum: Bing [Bot] and 0 guests