I know this question has been asked quite a few times from the archive,
but nothing in the previous posts seems to help my setup. I currently
have samba 3.0.21c running on Slackware with CUPS as the printing
conduit. It's setup as a PDC as can be seen from the smb.conf file
below. I cannot, no matter what I've tried, get the server to allow me
to add printer drivers to a printer through the printer properties
dialog box. I've given myself the SePrintOperatorPrivilege rights but
that didn't work. I tried putting the 'printer admin' directive in
the
smb.conf file and that didn't work; I know it's deprecated but thought
I'd try anyway. Any suggestions would be greatly appreciated as I've
been on IRC several times trying to figure this out with no success.
I've also tried logging in as 'root' and 'administrator'
neither of
which work; my /etc/samba/smbusers contains a line: 'root =
Administrator'.
Configuration files are attached. If any other information is needed I
will gladly supply it.
Thank you.
Tom
-------------- next part --------------
# Global parameters
[global]
workgroup = SAVAGEPHP
netbios name = nightwolf
passdb backend = tdbsam
passdb expand explicit = no
enable privileges = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*Password* %n\n *Re-enter*new*password*%n\n
*Password*changed*
username map = /etc/samba/smbusers
log level = 5
syslog = 0
log file = /var/log/samba/%m
max log size = 0
smb ports = 139 445
name resolve order = wins bcast hosts
printcap name = CUPS
show add printer wizard = No
add user script = /usr/sbin/useradd -m '%u'
delete user script = /usr/sbin/userdel -r '%u'
add group script = /usr/sbin/groupadd '%g'
delete group script = /usr/sbin/groupdel '%g'
add user to group script = /usr/bin/gpasswd -a '%u' '%g'
delete user from group script = /usr/bin/gpasswd -d '%u' '%g'
add machine script = /usr/sbin/useradd -s /bin/false -d /tmp '%u'
shutdown script = /var/lib/samba/scripts/shutdown.sh
abort shutdown script = /sbin/shutdown -c
logon script = scripts\logon.bat
logon path = \\%L\profiles\%U
logon drive = H:
logon home = \\%L\%U
domain logons = Yes
preferred master = Yes
domain master = Yes
wins support = Yes
utmp = Yes
map acl inherit = Yes
veto files = /*.eml/*.nws/*.{*}/
veto oplock files = /*.doc/*.xls/*.mdb/
[Printers]
comment = SMB Print Spool
path = /var/spool/samba
guest ok = Yes
printable = Yes
use client driver = Yes
default devmode = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
browseable = yes
guest ok = no
read only = yes
write list = root, tom
[Apps]
comment = Application Files
path = /apps
admin users = tom
read only = No
[Homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No
[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
guest ok = Yes
locking = No
[profiles]
comment = Profile Share
path = /var/lib/samba/profiles
read only = No
profile acls = Yes
[Webroot]
comment = Webroot
path = /var/www
read only = no
admin users = tom
[Accounts]
comment = Accounting Files
path = /data/accounts
read only = No
[Engineer]
comment = Engineering Files
path = /data/engineer
read only = No
-------------- next part --------------
#### # User mapping file ####
# File Format
# -----------
# Unix_ID = Windows_ID
#
# Examples:
# root = Administrator
# janes = "Jane Smith"
# jimbo = Jim Bones
#
# Note: If the name contains a space it must be double quoted.
# In the example above the name 'jimbo' will be mapped to Windows
# user names 'Jim' and 'Bones' because the space was not quoted.
#######################################################################
root = Administrator
####
# End of File
####
Kirk B. Dice
2006-May-10 18:26 UTC
[Samba] Problem with adding printer drivers in Windows XP
I had a similar situation. I ended up using the smbclient to pull the drivers over from NT, then used the rpclient to add and set the drivers. Instructions on this are in the samba doc link below. Also try adding the domain name to your 'root=administrator' user map. http://us4.samba.org/samba/docs/man/Samba-HOWTO-Collection/classicalprinting .html Kirk ----- Original Message ----- From: "Tom" <savagephp@gmail.com> To: <samba@lists.samba.org> Sent: Wednesday, May 10, 2006 11:20 AM Subject: [Samba] Problem with adding printer drivers in Windows XP> I know this question has been asked quite a few times from the archive, > but nothing in the previous posts seems to help my setup. I currently > have samba 3.0.21c running on Slackware with CUPS as the printing > conduit. It's setup as a PDC as can be seen from the smb.conf file > below. I cannot, no matter what I've tried, get the server to allow me > to add printer drivers to a printer through the printer properties > dialog box. I've given myself the SePrintOperatorPrivilege rights but > that didn't work. I tried putting the 'printer admin' directive in the > smb.conf file and that didn't work; I know it's deprecated but thought > I'd try anyway. Any suggestions would be greatly appreciated as I've > been on IRC several times trying to figure this out with no success. > I've also tried logging in as 'root' and 'administrator' neither of > which work; my /etc/samba/smbusers contains a line: 'root Administrator'. > > Configuration files are attached. If any other information is needed I > will gladly supply it. > > Thank you. > > Tom > >---------------------------------------------------------------------------- ----> # Global parameters > [global] > workgroup = SAVAGEPHP > netbios name = nightwolf > passdb backend = tdbsam > passdb expand explicit = no > enable privileges = Yes > pam password change = Yes > passwd program = /usr/bin/passwd %u > passwd chat = *New*Password* %n\n *Re-enter*new*password*%n\n*Password*changed*> username map = /etc/samba/smbusers > log level = 5 > syslog = 0 > log file = /var/log/samba/%m > max log size = 0 > smb ports = 139 445 > name resolve order = wins bcast hosts > printcap name = CUPS > show add printer wizard = No > add user script = /usr/sbin/useradd -m '%u' > delete user script = /usr/sbin/userdel -r '%u' > add group script = /usr/sbin/groupadd '%g' > delete group script = /usr/sbin/groupdel '%g' > add user to group script = /usr/bin/gpasswd -a '%u' '%g' > delete user from group script = /usr/bin/gpasswd -d '%u' '%g' > add machine script = /usr/sbin/useradd -s /bin/false -d /tmp '%u' > shutdown script = /var/lib/samba/scripts/shutdown.sh > abort shutdown script = /sbin/shutdown -c > logon script = scripts\logon.bat > logon path = \\%L\profiles\%U > logon drive = H: > logon home = \\%L\%U > domain logons = Yes > preferred master = Yes > domain master = Yes > wins support = Yes > utmp = Yes > map acl inherit = Yes > veto files = /*.eml/*.nws/*.{*}/ > veto oplock files = /*.doc/*.xls/*.mdb/ > > [Printers] > comment = SMB Print Spool > path = /var/spool/samba > guest ok = Yes > printable = Yes > use client driver = Yes > default devmode = Yes > browseable = No > > [print$] > comment = Printer Drivers > path = /var/lib/samba/drivers > browseable = yes > guest ok = no > read only = yes > write list = root, tom > > [Apps] > comment = Application Files > path = /apps > admin users = tom > read only = No > > [Homes] > comment = Home Directories > valid users = %S > read only = No > browseable = No > > [netlogon] > comment = Network Logon Service > path = /var/lib/samba/netlogon > guest ok = Yes > locking = No > > [profiles] > comment = Profile Share > path = /var/lib/samba/profiles > read only = No > profile acls = Yes > > [Webroot] > comment = Webroot > path = /var/www > read only = no > admin users = tom > > [Accounts] > comment = Accounting Files > path = /data/accounts > read only = No > > [Engineer] > comment = Engineering Files > path = /data/engineer > read only = No >---------------------------------------------------------------------------- ----> #### # User mapping file #### > # File Format > # ----------- > # Unix_ID = Windows_ID > # > # Examples: > # root = Administrator > # janes = "Jane Smith" > # jimbo = Jim Bones > # > # Note: If the name contains a space it must be double quoted. > # In the example above the name 'jimbo' will be mapped to Windows > # user names 'Jim' and 'Bones' because the space was not quoted. > ####################################################################### > > root = Administrator > > #### > # End of File > #### >---------------------------------------------------------------------------- ----> -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba
Martin Zielinski
2006-May-11 06:57 UTC
[Samba] Problem with adding printer drivers in Windows XP
Hi Tom! You need appropriate rights on the windows- and the unix-side. To find out, if you're facing a problem with the unix-rights (which is often the problem), you could try this: 1. Log in directly to the drivers share and create or delete some files in the W32X86 directory. On Windows: start -> execute -> \\nightwolf\print$ On Linux: smbclient \\\\nightwolf\\print$ -U 'administrator%password' If this succeeds ... you should be able to add drivers, too. 2. Find out on the samba server which unix-user-id is used by the smbd: > smbstatus Samba version 3.0.20b PID Username Group Machine ------------------------------------------------------------------- 14293 SAVAGEPHP\administrator SAVAGEPHP\dom?nen-benutzer martin (192.168.3.74) Service pid machine Connected at ------------------------------------------------------- print$ 14293 martin Thu May 11 08:41:56 2006 3. Become this user on the samba server (as root): > su SAVAGEPHP\\administrator > cd /var/lib/samba/drivers/W32x86 > mkdir xxx 4. If you have a "unix-rights-problem" this does not succeed. Check your directory settings (also have a look at the "W32X86/2" and "W32X86/3" directory. Hope that helps ~ Martin Tom wrote:> I know this question has been asked quite a few times from the archive, > but nothing in the previous posts seems to help my setup. I currently > have samba 3.0.21c running on Slackware with CUPS as the printing > conduit. It's setup as a PDC as can be seen from the smb.conf file > below. I cannot, no matter what I've tried, get the server to allow me > to add printer drivers to a printer through the printer properties > dialog box. I've given myself the SePrintOperatorPrivilege rights but > that didn't work. I tried putting the 'printer admin' directive in the > smb.conf file and that didn't work; I know it's deprecated but thought > I'd try anyway. Any suggestions would be greatly appreciated as I've > been on IRC several times trying to figure this out with no success. > I've also tried logging in as 'root' and 'administrator' neither of > which work; my /etc/samba/smbusers contains a line: 'root = Administrator'. > > Configuration files are attached. If any other information is needed I > will gladly supply it. > > Thank you. > > Tom >-- Martin Zielinski mz@seh.de Software Development SEH Computertechnik GmbH www.seh.de