[Samba] new group memberships not receognized

2009-11-24 Thread Daulton Theodore
Hi all! 

I have a peculiar problem. I am running samba 3.0.23a on a solaris 9 box. I
am attempting to create a create a folder on a share and restrict access to 
a selected number of staff members. I created a new group named libssc with
gid 2013. I then created the folder named SSC belonging to the group libssc 
and with permissions 770. When I attempt save a file to the folder I get the
error message 'I:\SSC is not accessible. Access is denied.'

Looking through the log file I notice the group 2013 is not being listed as 
one of my supplementary groups. Has anyone encountered this before? I have 
done this procedure several time in the past but I am encountering problems 
this time around.

Here are some excerpts from the log file:

  params.c:pm_process() - Processing configuration file 
/usr/local/samba3/lib/smb.conf
[2009/11/24 13:56:42, 3] param/loadparm.c:do_section(3687)
  Processing section [globals]
[2009/11/24 13:56:42, 5] lib/debug.c:debug_dump_status(391)
  INFO: Current debug levels:
all: True/5
tdb: False/0
printdrivers: False/0
lanman: False/0
smb: False/0
rpc_parse: False/0
rpc_srv: False/0
rpc_cli: False/0
passdb: False/0
sam: False/0
auth: False/0
winbind: False/0
vfs: False/0
idmap: False/0
quota: False/0
acls: False/0
locking: False/0
msdfs: False/0
dmapi: False/0
  doing parameter syslog = 2
  doing parameter log file = /usr/local/samba3/var/log.%m:%U:%I
  doing parameter max log size = 2000
  doing parameter debug timestamp = yes
  doing parameter printing = SYSV
  doing parameter load printers = yes
  doing parameter lprm command = cancel %p-%j
  doing parameter use client driver = yes
[2009/11/24 13:56:42, 2] param/loadparm.c:do_section(3704)

SNIP
the I: drive where I am the folder exists
[2009/11/24 13:56:42, 2] param/loadparm.c:do_section(3704)
  Processing section [deptshr]
  doing parameter comment = %g Shared Directory
  doing parameter path = /files1/user/%g/common
  doing parameter read only = no
  doing parameter create mask = 0770
  doing parameter force create mode = 0770
  doing parameter directory mask = 0770
  doing parameter writable = yes
  doing parameter browseable = yes
  doing parameter invalid users = +circdesk

SNIP

[2009/11/24 13:56:43, 5] auth/auth_util.c:debug_nt_user_token(455)
  NT user token of user S-1-22-1-2223
  contains 20 SIDs
  SID[  0]: S-1-22-1-2223
  SID[  1]: S-1-5-21-2267612611-771306602-3073650580-3043
  SID[  2]: S-1-1-0
  SID[  3]: S-1-5-2
  SID[  4]: S-1-5-11
  SID[  5]: S-1-5-21-2267612611-771306602-3073650580-3001
  SID[  6]: S-1-5-21-2267612611-771306602-3073650580-3003
  SID[  7]: S-1-5-21-2267612611-771306602-3073650580-3011
  SID[  8]: S-1-5-21-2267612611-771306602-3073650580-3013
  SID[  9]: S-1-5-21-2267612611-771306602-3073650580-3017
  SID[ 10]: S-1-5-21-2267612611-771306602-3073650580-3025
  SID[ 11]: S-1-5-21-2267612611-771306602-3073650580-3037
  SID[ 12]: S-1-5-21-2267612611-771306602-3073650580-3041
  SID[ 13]: S-1-5-21-2267612611-771306602-3073650580-3045
  SID[ 14]: S-1-5-21-2267612611-771306602-3073650580-3047
  SID[ 15]: S-1-5-21-2267612611-771306602-3073650580-3051
  SID[ 16]: S-1-5-21-2267612611-771306602-3073650580-3053
  SID[ 17]: S-1-5-21-2267612611-771306602-3073650580-5011
  SID[ 18]: S-1-5-21-2267612611-771306602-3073650580-5021
  SID[ 19]: S-1-5-21-2267612611-771306602-3073650580-3039
  SE_PRIV  0x0 0x0 0x0 0x0
[2009/11/24 13:56:43, 5] auth/auth_util.c:debug_unix_user_token(475)
  UNIX token of user 2223
  Primary group is 1021 and contains 16 supplementary groups
  Group[  0]: 1021
  Group[  1]: 1000
  Group[  2]: 1001
  Group[  3]: 1005
  Group[  4]: 1006
  Group[  5]: 1008
  Group[  6]: 1012
  Group[  7]: 1018
  Group[  8]: 1020
  Group[  9]: 1022
  Group[ 10]: 1023
  Group[ 11]: 1025
  Group[ 12]: 1026
  Group[ 13]: 2005
  Group[ 14]: 2010
  Group[ 15]: 1019
[2009/11/24 13:56:43, 5] smbd/uid.c:change_to_user(260)
  change_to_user uid=(0,2223) gid=(0,1021)
[2009/11/24 13:56:43, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2009/11/24 13:56:43, 5] auth/auth_util.c:debug_nt_user_token(449)
  NT user token: (NULL)
[2009/11/24 13:56:43, 5] auth/auth_util.c:debug_unix_user_token(475)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2009/11/24 13:56:43, 5] smbd/uid.c:change_to_root_user(275)


Thanks in advance for any help.
-- 
--- 0 
Daulton Theodore  /\Tel: 613-520-2600 ext. 8352
Carleton University Library   _\\Fax: 613-520-2750
Systems Department`/ Net: daulton_theod...@carleton.ca
-- ` -
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] slow printing with XP SP3

2009-03-24 Thread Daulton Theodore
I have Samba 3.0.23a installed on a server running Solaris 9. We had no
problems printing with Service Pack 2 installed on the wrokstations. 
However since we started rolling out XP Service Pack 3 printing has become
extremely slow. Printing reverts to normal if Service Pack 3 is uninstalled.
Has anyone encountered such a problem? Any suggestions for a solution will
be much appreciated.
-- 
--- 0 
Daulton Theodore  /\Tel: 613-520-2600 ext. 8352
Carleton University Library   _\\Fax: 613-520-2750
Systems Department`/ Net: daulton_theod...@carleton.ca
-- ` -
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] wrong ELF class error

2008-03-26 Thread Daulton Theodore
I am trying to configure samba on a Sunfire V125 with Solaris 9 using:
- openldap-2.3.22
- libiconv-1.9.1
- samba-3.0.23a
- krb5-1.6.3 (the previous build used krb5-1.5.1

Kereberos, openldap and libiconv are all installed but the samba build 
generates an error.

The following works:
  ./configure --prefix=/usr/local/samba \
  --with-ldap \
  --with-ads \
  --with-krb5 \
  --with-pam \
  --with-winbind

I then set LD_PRELOAD:
# export LD_PRELOAD=/usr/local/lib/libiconv_plug.so

However when I run 'make' I get the following output:
# make
Using FLAGS =  -I/usr/local/include -O -D_SAMBA_BUILD_ 
-I/lib001/samba_binaries/samba-3.0.23a/source/popt 
-I/lib001/samba_binaries/samba-3.0.23a/source/iniparser/src -Iinclude 
-I/lib001/samba_binaries/samba-3.0.23a/source/include 
-I/lib001/samba_binaries/samba-3.0.23a/source/tdb  -I. -DHAVE_CONFIG_H  
-I/usr/local/include -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64 
-DLDAP_DEPRECATED -DSUNOS5 -I/lib001/samba_binaries/samba-3.0.23a/source 
-D_SAMBA_BUILD_
  LIBS = -lsendfile -lresolv -lnsl -lsocket -ldl -liconv
  LDSHFLAGS = -G  -L/usr/local/lib -R/usr/local/lib -lthread
  LDFLAGS = -L/usr/local/lib -R/usr/local/lib -lthread
  PIE_CFLAGS =
  PIE_LDFLAGS =
Generating smbd/build_options.c
Building include/proto.h
ld.so.1: sort: fatal: /usr/local/lib/libiconv_plug.so: wrong ELF class: 
ELFCLASS32
creating /lib001/samba_binaries/samba-3.0.23a/source/include/proto.h


and it just sits there until I break out of it CTRL-\

Has anyone encountered this? Any idea what this 'wrong ELF class' means? I 
am hoping someone will have come across this and offer some suggestion as 
to how to get past this point.

Thanks for any help you could provide.

-- 
--- 0 
Daulton Theodore  /\Tel: 613-520-2600 ext. 8352
Carleton University Library   _\\Fax: 613-520-2750
Systems Department`/ Net: [EMAIL PROTECTED]
-- ` -
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] root ownership of print jobs

2007-04-10 Thread Daulton Theodore
Samba 3.0.23a
Solaris 9

I have reecently upgraded my Samba server to the above version and joined an 
Active Directory domain. Since having achieved this I have been encountering 
a strange problem. 
On some of my printers the printing of banner pages is enabled. In some 
instances when a user submits a print job it prints with root as the owner
on the banner page and not the user's who submitted the job.
I have included the Global section of my conf file. Has anyone encountered 
this behavior?

# Global parameters
[globals]
   netbios name  = my_netbiosname
   server string = %L
   workgroup = my_workgroup
   browsable = yes
   local master  = no

   allow hosts   = allowed-hosts
   hosts deny = 0.0.0.0/0

   security  = ADS
   realm = mydomain


   password server = my password servers

   machine password timeout = 314496000
   name resolve order = lmhosts wins host bcast

   remote announce = x.x.x.x

   wins server = w.w.w.w

#  force Samba to bind only to hme0
   interfaces= y.y.y.y/255.255.255.0
   bind interfaces only = yes
   socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
   deadtime = 0

   client lanman auth = no
   client ntlmv2 auth = yes
   client plaintext auth = no
   lanman auth = no
   ntlm auth = no
   enable privileges = no


#  Encrypt all passwords stored in /usr/local/samba3/private/smbpasswd
   encrypt passwords = yes
   smb passwd file   = passwd file
   username map = names file

#  not allowed to log in
   invalid users = invalid users

   writeable = yes

#  Debug Logging information
   log level = 3
   syslog = 2
   log file = log.%m
   max log size = 2000
   debug timestamp = yes


#  printing stuff
   printing  = SYSV
   load printers = yes
   lprm command = cancel %p-%j
   use client driver = yes


# ---

-- 
--- 0 
Daulton Theodore  /\Tel: 613-520-2600 ext. 8352
Carleton University Library   _\\Fax: 613-520-2750
Systems Department`/ Net: [EMAIL PROTECTED]
-- ` -
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Upgrading Samba

2006-01-26 Thread Daulton Theodore
 
Daulton Theodore  /\Tel: 613-520-2600 ext. 8352
Carleton University Library   _\\Fax: 613-520-2750
Systems Department`/ Net: [EMAIL PROTECTED]
-- ` -
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Unable to join NT domain

2005-11-29 Thread Daulton Theodore
I have been trying to have a Samba-2.2.8a server join our NT domain with no
luck. I already have another 2.2.8a server in the domain. This one (the 
production server) resides on a Sunfire V280R with solaris 8. The intention 
is replace it with a Sunfire V240 running Solaris 9. I would like to have the
test server (Solaris 9) join a domain so I could test that all (printing etc)
will work before I do the cut-over. I have read lots of literature but have 
been unable to successfully join. I have had the machine account recreated 
several times but to no avail. The following is the output from my attempt
to join with debug level set to three. I am hoping that someone out there 
would spot something that would help me get past this hurdle. Thanks in 
advance.

# smbpasswd -D 3 -j myDOMAIN -r my_PDC
Initialising global parameters
params.c:pm_process() - Processing configuration file 
/usr/local/samba/lib/smb.conf
Processing section [globals]
added interface ip=aaa.bbb.ccc.213 bcast=aaa.bbb.ccc.255 nmask=255.255.255.0
resolve_lmhosts: Attempting lmhosts lookup for name my_PDC0x20
resolve_hosts: Attempting host lookup for name my_PDC0x20
Connecting to xxx.yyy.zzz.117 at port 445
error connecting to xxx.yyy.zzz.117:445 (Connection refused)
Connecting to xxx.yyy.zzz.117 at port 139
resolve_lmhosts: Attempting lmhosts lookup for name my_PDC0x20
resolve_hosts: Attempting host lookup for name my_PDC0x20
Connecting to xxx.yyy.zzz.117 at port 445
error connecting to xxx.yyy.zzz.117:445 (Connection refused)
Connecting to xxx.yyy.zzz.117 at port 139
lsa_io_sec_qos: length c does not match size 8
resolve_lmhosts: Attempting lmhosts lookup for name MY_PDC0x20
resolve_hosts: Attempting host lookup for name MY_PDC0x20
Connecting to xxx.yyy.zzz.117 at port 445
error connecting to xxx.yyy.zzz.117:445 (Connection refused)
Connecting to xxx.yyy.zzz.117 at port 139
resolve_lmhosts: Attempting lmhosts lookup for name MY_PDC0x20
resolve_hosts: Attempting host lookup for name MY_PDC0x20
Connecting to xxx.yyy.zzz.117 at port 445
error connecting to xxx.yyy.zzz.117:445 (Connection refused)
Connecting to xxx.yyy.zzz.117 at port 139
cli_net_req_chal: Error NT_STATUS_INVALID_COMPUTER_NAME
cli_nt_setup_creds: request challenge failed
modify_trust_password: unable to setup the PDC credentials to machine MY_PDC. 
Error was : NT_STATUS_UNSUCCESSFUL.
2005/11/29 08:46:41 : change_trust_account_password: Failed to change password 
for domain myDOMAIN.
Unable to join domain myDOMAIN.
#


-- 
--- 0 
Daulton Theodore  /\Tel: 613-520-2600 ext. 8352
Carleton University Library   _\\Fax: 613-520-2750
Systems Department`/ Net: [EMAIL PROTECTED]
-- ` -
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Unable to join domain

2005-10-19 Thread Daulton Theodore
)
  cli_full_connection: failed to connect to EAGLE.DOMAIN`20 (X.X.Y.117)
Could not connect to server eagle.domain
[2005/10/19 11:33:34, 2] utils/net.c:main(859)
  return code = 1
# ^D

script done on Wed Oct 19 11:33:38 2005

-- 
--- 0 
Daulton Theodore  /\Tel: 613-520-2600 ext. 8352
Carleton University Library   _\\Fax: 613-520-2750
Systems Department`/ Net: [EMAIL PROTECTED]
-- ` -
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba 3 Unable to join domain

2005-09-20 Thread Daulton Theodore
I am currently running Samba 2.2.8a in a production environment on a Unix 
box with Solaris 8. I am hoping to migrate and upgrade to Samba 3.0.10 on a 
Solaris 10 box. I am however having difficulties joining the NT domain with 
my new (still test server).

Initially I provided the administrator with the ip address and the netbios 
name of the samba server so that a trust account could be created. After 
having no success joining I had the old account deleted and a new account 
created with the same ip address and the Unix hostname (different from the 
netbios name). Still no success. Here is the result of my join and oldjoin 
commands:

# net rpc join MEMBER -S PDC_name
Password:


# net rpc oldjoin MEMBER -S PDC_name
Failed to join domain

Joining the domain was painless with the smbpasswd command for version 2.2.8. 
According to all that I.ve read (maybe not enough) it should also be easy 
with version 3x with the join/oldjoin command. The account exists but I 
still get prompted for a password when using the join command. I do not have 
the admin password and I think this should be do-able without providing the 
password.

Has anyone else encountered this problem? Any suggestions on how to get 
past this?

Here is a section of my smb-conf file
# Global parameters
[globals]
   netbios name  = horntail
   server string = Library's %L %v
   workgroup = CARLETON.CA
   local master  = no
   allow hosts   = 134.x.x. 134.y.y
   security  = domain
   browsable = yes

   password server = server1.nt server2.nt server3
   machine password timeout = 314496000
   remote announce = 134.x.x.x
   wins server = winsservername

#  force Samba to bind only to hme0
   interfaces= 134.x.x.x/255.255.255.0
   bind interfaces only = yes
   socket options = SO_KEEPALIVE TCP_NODELAY
   deadtime = 0

#  Encrypt all passwords stored in /usr/local/samba.private/smbpasswd
   encrypt passwords = yes
   username map = /usr/local/samba/lib/nt-names
   smb passwd file   = /usr/local/samba/private/smbpasswd

   writeable = yes

#  Debug Logging information
   log level = 2
   log file = /usr/local/samba/var/log.%m


Any suggestions would be much appreciated.
-- 
--- 0 
Daulton Theodore  /\Tel: 613-520-2600 ext. 8352
Carleton University Library   _\\Fax: 613-520-2750
Systems Department`/ Net: [EMAIL PROTECTED]
-- ` -
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba 3 Upgrade Questions

2005-04-20 Thread Daulton Theodore
 mask = 0775
   directory mask = 0775
   hide files = /lost+found/
   valid users = +libsys +libmgmt +libacq +libarc +libcat +libcirc +librs 
+libmdgc +libgift +libcoll +libtrain
   invalid users = +circdesk

# -
# Cataloguer's Desktop
# -
[catdesk]
   comment = Cataloguer's Desktop
   path = /files1/apps/catdesk
   writeable = yes
   create mask = 0775
   directory mask = 0775
   hide files = /lost+found/
   valid users = +libsys +libmgmt +libacq +libarc +libcat +libcirc +librs 
+libmdgc +libgift +libcoll 
   invalid users = circdsk1 +libtrain
#
# -
# GIS DATA 
# -
[gis]
   comment = GIS Data
   path = /files1/user/gis
   browseable = yes
   writeable = yes
   create mask = 0754
   force create mode = 0754
   directory mask = 0754
   force directory mode = 0754
   hide files = /lost+found/
   valid users = gisadmin +libgis +libtrain

# -
# Circle of friends
# -
[cof]
   comment = Circle of Friends
   path = /files1/user/cof
   browseable = yes
   writeable = yes
   create mask = 0770
   force create mode = 0770
   directory mask = 0770
   force directory mode = 0770
   force group = libcof
   hide files = /lost+found/
   valid users = friends +libcof

# -
# Circle of friends
# -
[cof2]
   comment = Circle of Friends - libshare
   path = /files1/user/common/cof
   browseable = yes
   writeable = yes
   create mask = 0770
   force create mode = 0770
   directory mask = 0770
   force directory mode = 0770
   force group = libcof
   hide files = /lost+found/
   valid users = friends +libcof

#--
# Printer definitions
# --
[printers]
   comment = Printers
   path = /tmp/smbspool
#   path = /usr/local/samba/spool
   printable = yes
   create mask = 0777
   force create mode = 0777
   browseable = yes
   public = yes
   print ok = yes
   admin users = +libsys smbadmin

-- 
--- 0 
Daulton Theodore  /\Tel: 613-520-2600 ext. 8352
Carleton University Library   _\\Fax: 613-520-2750
Systems Department`/ Net: [EMAIL PROTECTED]
-- ` -
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] samba inconsistent printing behavior

2003-07-09 Thread Daulton Theodore

Hello all. I've set up a Samba server on a Sun E280 box running Solaris 8. The
server is part of a domain. I am having some problems printing. I can setup
the printers on the Windows NT workstations using the Add Printer wizard. 
However, when I try to print I get inconsistent results. After installing the 
printer the workstation has to be restarted (sometimes more than once) before
anything (test page or otherwise) prints. In some cases the print job sent 
to the printer goes into a black hole and sits in /tmp. In other instances 
the print job gets printed under the banner 'nobody'. The name on the banner 
page is not the username (eg. dtheodor in my case). Sometimes it prints 
perfectly. This is rather inconsistent and is currently the only obstacle to 
deploying the server into production. If anyone has any ideas as to how to 
stabilize printing they would be most welcomed and truly appreciated.

BTW: One other thing. Sometimes when one navigates to the server in Windows 
Explorer and double clicks on it in the left pane. The descriptions (as per 
the the comment defintion in the conf file) for each share does displays 
'nobody' wherever a variable (%u, %g) should have been translated. Again this
is not consistentany ideas?

Thanks in advance for your help/suggestions! The following is my smb.conf.


# Global parameters
[globals]
   netbios name  = hornbill
#   server string = Samba %v on Netbios (%L), DNS hostname (%h)
   server string = Library's %L
   workgroup = domain name
   local master  = no
   allow hosts   = x.x.x.x y.y.y.y
   security  = domain
   browsable = yes

   password server = eagle starling sparrow
   machine password timeout = 314496000
   remote announce = valid address
   wins server = valid wins server name

#  force Samba to bind only to hme0
   interfaces= x.x.x.x/255.255.255.0
   bind interfaces only = yes
   socket options = SO_KEEPALIVE TCP_NODELAY
#   dead time = 15
   dead time = 0

#  Encrypt all passwords stored in /usr/local/samba.private/smbpasswd
   encrypt passwords = yes
   username map = /usr/local/samba/lib/nt-names
   smb passwd file   = /usr/local/samba/private/smbpasswd

#  not allowed to log in
   invalid users = root daemon bin sys adm lp listen sshd\
   erl webspirs samba rob jan daulton 

   writeable = yes
   guest account = nobody

#  Debug Logging information
   log level = 3
   log file = /usr/local/samba/var/log.%m
   max log size = 5000
   debug timestamp = yes


#  printing stuff
   printing  = SYSV
   load printers = yes
   use client driver = yes
   printer admin = dtheodor


# ---
# Home Directory
# ---
[homedir]
   comment = %u
   path = /files1/user/%g/%u
   browseable = yes
   writeable = yes
#   guest ok = yes

# ---
# Departments
# ---
[dept]
   comment = %g
   path = /files1/user/%g
   browseable = yes
   writeable = yes
   read only = no
   guest ok = yes

# --
# All department shares
# --
[alldepts]
   comment = All Departments
   path= /files1/user
   browseable  = yes
   writeable   = yes
   guest ok= yes
   hide files = /lost+found/
   valid users = @libsys dtheodor


# 
# Shared directory for each department
# 
[deptshr]
   comment = %g Shared Directory
   path = /files1/user/%g/common
   guest ok = no
   read only= no
   create mode  = 0770
   writable = yes
   browseable   = yes
   
# --
# shared directory for ALL staff
# --
[libshare]
   comment = Library staff shared directory
   path= /files1/user/common
   browseable  = yes
   writeable   = yes
   create mode = 766
   guest ok= yes
   
# ---
# Applications folder
# ---
[apps]
   comment = applications folder
   path = /files1/apps
   browseable = yes
   writeable = yes
   create mask = 0775
   directory mask = 0775
   guest ok = yes
   hide files = /lost+found/

# --
# Printer definitions
# --
[printers]
   comment = Printers
   path = /tmp
   printable = yes
   create mask = 0700
   browseable = yes
   public = yes
   guest ok = yes
   print ok = yes




-- 
--- 0 
Daulton Theodore  /\Tel: 613-520-2600 ext. 8352
Carleton University Library   _\\Fax: 613-520-2750
Systems Department`/ Net: [EMAIL PROTECTED]
-- ` -
-- 
To unsubscribe from this list go to the following URL and read

[Samba] Printing problem

2003-01-15 Thread daulton theodore
I currently have Samba set up in a test environment. Samba is installed
and running on a Unix box, Solaris 8. I have one workstation which I use
to access it. I have created three identical users: User1, User2, User3.
I have a printer installed on the Unix box. All three users can see the
shares (including the printer) while browsing the tree. The problem is
when I login to the workstation as User1 printing works just fine but I
have no success printing as User2 or User3. Any suggestions on how to
resolve this? Here's a copy of my smb.conf.

# Global parameters
[globals]
   netbios name  = HYDRA
   server string = Samba %v on Netbios (%L), DNS hostname (%h)
   workgroup = SIMPLE

   dead time = 5
   encrypt passwords = yes
   passwd chat = *New Password:* %n\r *New password (again):* %n\r
*Password changed*
   passwd program = /usr/bin/passwd %u
   smb passwd file   = /usr/local/samba/private/smbpasswd

   invalid users = root daemon bin sys adm lp listen sshd\
   erl webspirs samba rob jan daulton
   auto services = user1
   browsable = no
   writeable = yes

#  Debug Logging information
   log level = 3
   log file = /usr/local/samba/var/log.%m
   max log size = 100
   debug timestamp = yes


#  printing stuff
   printing  = SYSV
#   printcap name = lpstat
   printcap name = /usr/local/samba/lib/printcap
   load printers = yes
   use client driver = yes


# 
# [homes] User Home Directories]
# [user1] and [user2] commented
# ---
[homes]
#   comment = Home Directory for : %U 
   comment = %U 
   path = /files1/%g/%U
   guest ok = no
   read only = no
   create mode = 740
   writable = yes
   browseable = yes

[deptshr]
   comment = %g Shared Directory
   comment = %g Shared Directory
   path = /files1/%g/common
   guest ok = yes
   valid users = @smbuser
   read only = no
   create mask = 0770
   directory mask = 0770
   writable = yes
   browseable = yes

[usrdata]
   path= /files1/test
   browseable  = yes
   comment = Data Drive
   volume  = Sample-Data-Drive
   writeable   = yes
   valid users = user1
   guest ok= no

[public]
   comment =  Common shared directory
   path = /files1/usrshare
   valid users = @smbuser
   browseable = yes
   writeable = yes
   create mode = 0777
   directory mode = 0777
   guest ok = yes

[apps]
   comment = apps folder
   path = /files1/apps
   browseable = yes
   writeable = no
   write list = @smbuser

[printers]
   comment = Printers
   path = /tmp
   printable = yes
   create mask = 0700
   browseable = yes
   public = yes
   guest ok = yes
   print ok = yes
#   load printers = yes


[lasersys]
   comment = systems laser printer
   browseable = yes
   printer = laser_sys
   create mask = 0700
   printable = yes
   guest ok = yes
   printing = SYSV
   print command = /bin/lp -c -d%p %s; rm %s
#   print command = /bin/lp -c -dlaser_sys %s; rm %s
   path = /tmp


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] Re: Printing Problem

2003-01-03 Thread daulton theodore
Oscar. I am having the identical problem. Posted to the group a couple
of weeks ago but have not been able to resolve the problem. I am new to
Samba and still trying to resolve this so I would really appreciate it
if you could keep me posted on any progress you make.
I have omitted the 'rm' portion on my print command so I am able to see
the print job get spooled to /tmp (the path specified in my printer
share) but it never gets passed on to the printer. Like you I am able to
print the file manually from /tmp.

Here is a snip from my log file which was not included in my original
posting (samba printing on Solaris 8, posted on Dec 11 2002):

[2003/01/03 09:14:09, 3] smbd/ipc.c:named_pipe(335)
  named pipe command on  name
[2003/01/03 09:14:09, 3] smbd/ipc.c:api_fd_reply(297)
  Got API command 0x26 on pipe spoolss (pnum 7030)free_pipe_context:
destroying talloc pool of size 0
[2003/01/03 09:14:09, 3] rpc_server/srv_pipe.c:api_pipe_request(1152)
  Doing \PIPE\spoolss
[2003/01/03 09:14:09, 3] rpc_server/srv_pipe.c:api_rpcTNP(1184)
  api_rpcTNP: rpc command: SPOOLSS_OPENPRINTEREX
  checking name: \\Hydra\lasersys
[2003/01/03 09:14:09, 3]
rpc_server/srv_spoolss_nt.c:set_printer_hnd_printertype(377)
  Setting printer type=\\Hydra\lasersys
[2003/01/03 09:14:09, 3] lib/util_seaccess.c:se_access_check(242)
  se_access_check: user sid is
S-1-5-21-2119108545-1539534483-2980339713-4096
[2003/01/03 09:14:09, 3] lib/util_seaccess.c:se_access_check(245)
  se_access_check: also S-1-5-21-2119108545-1539534483-2980339713-7001
[2003/01/03 09:14:09, 3] lib/util_seaccess.c:se_access_check(245)
  se_access_check: also S-1-1-0
[2003/01/03 09:14:09, 3] lib/util_seaccess.c:se_access_check(245)
  se_access_check: also S-1-5-2
[2003/01/03 09:14:09, 3] lib/util_seaccess.c:se_access_check(245)
  se_access_check: also S-1-5-11
[2003/01/03 09:14:09, 3]
rpc_server/srv_pipe_hnd.c:free_pipe_context(417)
  free_pipe_context: destroying talloc pool of size 1968
[2003/01/03 09:14:09, 3] smbd/process.c:process_smb(860)
  Transaction 472 of length 144
[2003/01/03 09:14:09, 3] smbd/process.c:switch_message(667)
  switch message SMBtrans (pid 2479)
[2003/01/03 09:14:09, 3] smbd/ipc.c:reply_trans(483)
  trans \PIPE\ data=64 params=0 setup=2
[2003/01/03 09:14:09, 3] smbd/ipc.c:named_pipe(335)
  named pipe command on  name
[2003/01/03 09:14:09, 3] smbd/ipc.c:api_fd_reply(297)
  Got API command 0x26 on pipe spoolss (pnum 7030)free_pipe_context:
destroying talloc pool of size 0
[2003/01/03 09:14:09, 3] rpc_server/srv_pipe.c:api_pipe_request(1152)
  Doing \PIPE\spoolss
[2003/01/03 09:14:09, 3] rpc_server/srv_pipe.c:api_rpcTNP(1184)
  api_rpcTNP: rpc command: SPOOLSS_ENUMJOBS
[2003/01/03 09:14:09, 3] printing/printing.c:print_cache_expired(758)
  print cache expired
[2003/01/03 09:14:09, 3] printing/print_generic.c:print_run_command(90)
  Running the command `/bin/lpstat -olaser_sys' gave 0
[2003/01/03 09:14:09, 3] printing/printing.c:print_queue_update(391)
  0 jobs in queue for lasersys
[2003/01/03 09:14:09, 3]
rpc_server/srv_pipe_hnd.c:free_pipe_context(417)
  free_pipe_context: destroying talloc pool of size 52
[2003/01/03 09:14:09, 3] smbd/process.c:process_smb(860)
  Transaction 473 of length 124
[2003/01/03 09:14:09, 3] smbd/process.c:switch_message(667)
  switch message SMBtrans (pid 2479)
[2003/01/03 09:14:09, 3] smbd/ipc.c:reply_trans(483)
  trans \PIPE\ data=44 params=0 setup=2
[2003/01/03 09:14:09, 3] smbd/ipc.c:named_pipe(335)
  named pipe command on  name
[2003/01/03 09:14:09, 3] smbd/ipc.c:api_fd_reply(297)
  Got API command 0x26 on pipe spoolss (pnum 7030)free_pipe_context:
destroroying talloc pool of size 0
[2003/01/03 09:14:09, 3] rpc_server/srv_pipe.c:api_pipe_request(1152)
  Doing \PIPE\spoolss
[2003/01/03 09:14:09, 3] rpc_server/srv_pipe.c:api_rpcTNP(1184)
  api_rpcTNP: rpc command: SPOOLSS_CLOSEPRINTER
[2003/01/03 09:14:09, 3] rpc_server/srv_lsa_hnd.c:close_policy_hnd(186)
  Closed policy
[2003/01/03 09:14:09, 3]
rpc_server/srv_pipe_hnd.c:free_pipe_context(417)
  free_pipe_context: destroying talloc pool of size 0

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Samba printing on Solaris 8

2002-12-16 Thread daulton theodore
The experiment worked. The file /tmp/junk was created when I tried to print the file
smb.conf. Here are the contents of /tmp/junk:

# cat /tmp/junk
Tried to print smbprn.77.EAaqrt

Here are the attributes:
# ls -lt /tmp|head
total 1616
-rw-rw-rw-   1 user2smbuser   36 Dec 16 09:04 junk

Any other suggestions as to what I should try next? Thanks!

 Well, to experiment, you might try, in your printing share:
 printing command = echo Tried to print %s  /tmp/junk
 And see if that command gets executed.
 Joel

 On Thu, Dec 12, 2002 at 01:44:31PM -0500, daulton theodore wrote:
  Thanks Joel. I did move everything except 'printing, printcap name and load
  printers' into the share, restarted the server, tried printing. Got the same
  result. I'm really puzzled as to why this is not working. It seemed so simple
  according to the instructions in the various references. I'm open to any other
  suggestions.
 
  Joel Hammer wrote:
 
   On Wed, Dec 11, 2002 at 04:00:18PM -0500, daulton theodore wrote:
   You might put the printing stuff into the share, not in the global section.
   Joel
   On Wed, Dec 11, 2002 at 04:00:18PM -0500, daulton theodore wrote:
Hi:
I am new to the Samba world and I am having problems with printing. I
have Samba installed on a Solaris 8 server. I can see the Samba shares
and the printer (lasersys) in Windows Explorer. I have installed the
printer on my workstation (NT 4.0) using the Windows 'Add Printer'
wizard. However, when I send a print job to the printer
(Wordpad:File  Print) the job never gets to the printer. Instead the
job stays in /tmp with a filename such as 'smbprn.47.Qgayvr'. I have
left out the '; rm %s' from the print command below so that I could see
the jobs landing in /tmp and not making it to the printer. I really
would appreciate any help/suggestions you guys can offer.
   
The following is a clip from the config.smb file:
   
# Global parameters
[globals]
   netbios name  = HYDRA
   server string = Samba %v on Netbios (%L), DNS hostname (%h)
   workgroup = SIMPLE
   dead time = 5
   encrypt passwords = yes
   browsable = no
   writeable = yes
   
#  Debug Logging information
   log level = 2
   log file = /usr/local/samba/var/samba.log.%m
   max log size = 50
   debug timestamp = yes
   
#  printing stuff
   printing  = SYSV
   printcap name = /usr/local/samba/lib/printcap
   print command = /bin/lp -c -d%p %s
   lpq command = /bin/lpstat -o%p
   lprm command = /bin/cancel %p-%j
   lppause command = /bin/lp -i %p-%j -H hold
   lpresume command = /bin/lp -i %p-%j -H resume
   load printers = yes
   use client driver = yes
   
[printers]
   comment = Printers
   path = /tmp
   printable = yes
   create mode = 0755
   browseable = yes
   public = no
   guest ok = yes
   print ok = yes
   
   
[lasersys]
   comment = systems laser printer
   browseable = yes
   printer = laser_sys
   create mode = 0755
   printable = yes
   guest ok = yes
   
   
   
The following is the contents of the printcap file:
   
laser_sys| hp laserjet 8150
   
lpstat -t generates the following:
   
# lpstat -t
scheduler is running
system default destination: laser_sys
system for _default: library4 (as printer laser_sys)
device for laser_sys: /dev/laser_sys
_default accepting requests since Tue Nov 19 14:33:56 EST 2002
laser_sys accepting requests since Tue Nov 19 14:33:56 EST 2002
printer laser_sys is idle. enabled since Tue Nov 19 14:33:56 EST 2002.
available.
#
   
   
Thanks in advance for any help/suggestion you can provide. It would
great to get this working!
   
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Samba printing on Solaris 8

2002-12-12 Thread daulton theodore
Thanks Joel. I did move everything except 'printing, printcap name and load
printers' into the share, restarted the server, tried printing. Got the same
result. I'm really puzzled as to why this is not working. It seemed so simple
according to the instructions in the various references. I'm open to any other
suggestions.

Joel Hammer wrote:

 On Wed, Dec 11, 2002 at 04:00:18PM -0500, daulton theodore wrote:
 You might put the printing stuff into the share, not in the global section.
 Joel
 On Wed, Dec 11, 2002 at 04:00:18PM -0500, daulton theodore wrote:
  Hi:
  I am new to the Samba world and I am having problems with printing. I
  have Samba installed on a Solaris 8 server. I can see the Samba shares
  and the printer (lasersys) in Windows Explorer. I have installed the
  printer on my workstation (NT 4.0) using the Windows 'Add Printer'
  wizard. However, when I send a print job to the printer
  (Wordpad:File  Print) the job never gets to the printer. Instead the
  job stays in /tmp with a filename such as 'smbprn.47.Qgayvr'. I have
  left out the '; rm %s' from the print command below so that I could see
  the jobs landing in /tmp and not making it to the printer. I really
  would appreciate any help/suggestions you guys can offer.
 
  The following is a clip from the config.smb file:
 
  # Global parameters
  [globals]
 netbios name  = HYDRA
 server string = Samba %v on Netbios (%L), DNS hostname (%h)
 workgroup = SIMPLE
 dead time = 5
 encrypt passwords = yes
 browsable = no
 writeable = yes
 
  #  Debug Logging information
 log level = 2
 log file = /usr/local/samba/var/samba.log.%m
 max log size = 50
 debug timestamp = yes
 
  #  printing stuff
 printing  = SYSV
 printcap name = /usr/local/samba/lib/printcap
 print command = /bin/lp -c -d%p %s
 lpq command = /bin/lpstat -o%p
 lprm command = /bin/cancel %p-%j
 lppause command = /bin/lp -i %p-%j -H hold
 lpresume command = /bin/lp -i %p-%j -H resume
 load printers = yes
 use client driver = yes
 
  [printers]
 comment = Printers
 path = /tmp
 printable = yes
 create mode = 0755
 browseable = yes
 public = no
 guest ok = yes
 print ok = yes
 
 
  [lasersys]
 comment = systems laser printer
 browseable = yes
 printer = laser_sys
 create mode = 0755
 printable = yes
 guest ok = yes
 
 
 
  The following is the contents of the printcap file:
 
  laser_sys| hp laserjet 8150
 
  lpstat -t generates the following:
 
  # lpstat -t
  scheduler is running
  system default destination: laser_sys
  system for _default: library4 (as printer laser_sys)
  device for laser_sys: /dev/laser_sys
  _default accepting requests since Tue Nov 19 14:33:56 EST 2002
  laser_sys accepting requests since Tue Nov 19 14:33:56 EST 2002
  printer laser_sys is idle. enabled since Tue Nov 19 14:33:56 EST 2002.
  available.
  #
 
 
  Thanks in advance for any help/suggestion you can provide. It would
  great to get this working!
 
  --
  To unsubscribe from this list go to the following URL and read the
  instructions:  http://lists.samba.org/mailman/listinfo/samba
  Hi:
  I am new to the Samba world and I am having problems with printing. I
  have Samba installed on a Solaris 8 server. I can see the Samba shares
  and the printer (lasersys) in Windows Explorer. I have installed the
  printer on my workstation (NT 4.0) using the Windows 'Add Printer'
  wizard. However, when I send a print job to the printer
  (Wordpad:File  Print) the job never gets to the printer. Instead the
  job stays in /tmp with a filename such as 'smbprn.47.Qgayvr'. I have
  left out the '; rm %s' from the print command below so that I could see
  the jobs landing in /tmp and not making it to the printer. I really
  would appreciate any help/suggestions you guys can offer.
 
  The following is a clip from the config.smb file:
 
  # Global parameters
  [globals]
 netbios name  = HYDRA
 server string = Samba %v on Netbios (%L), DNS hostname (%h)
 workgroup = SIMPLE
 dead time = 5
 encrypt passwords = yes
 browsable = no
 writeable = yes
 
  #  Debug Logging information
 log level = 2
 log file = /usr/local/samba/var/samba.log.%m
 max log size = 50
 debug timestamp = yes
 
  #  printing stuff
 printing  = SYSV
 printcap name = /usr/local/samba/lib/printcap
 print command = /bin/lp -c -d%p %s
 lpq command = /bin/lpstat -o%p
 lprm command = /bin/cancel %p-%j
 lppause command = /bin/lp -i %p-%j -H hold
 lpresume command = /bin/lp -i %p-%j -H resume
 load printers = yes
 use client driver = yes
 
  [printers]
 comment = Printers
 path = /tmp
 printable = yes
 create mode = 0755
 browseable = yes
 public = no
 guest ok = yes
 print ok = yes
 
 
  [lasersys]
 comment = systems laser printer
 browseable = yes
 printer

[Samba] Samba printing on Solaris 8

2002-12-11 Thread daulton theodore
Hi:
I am new to the Samba world and I am having problems with printing. I
have Samba installed on a Solaris 8 server. I can see the Samba shares
and the printer (lasersys) in Windows Explorer. I have installed the
printer on my workstation (NT 4.0) using the Windows 'Add Printer'
wizard. However, when I send a print job to the printer
(Wordpad:File  Print) the job never gets to the printer. Instead the
job stays in /tmp with a filename such as 'smbprn.47.Qgayvr'. I have
left out the '; rm %s' from the print command below so that I could see
the jobs landing in /tmp and not making it to the printer. I really
would appreciate any help/suggestions you guys can offer.

The following is a clip from the config.smb file:

# Global parameters
[globals]
   netbios name  = HYDRA
   server string = Samba %v on Netbios (%L), DNS hostname (%h)
   workgroup = SIMPLE
   dead time = 5
   encrypt passwords = yes
   browsable = no
   writeable = yes

#  Debug Logging information
   log level = 2
   log file = /usr/local/samba/var/samba.log.%m
   max log size = 50
   debug timestamp = yes

#  printing stuff
   printing  = SYSV
   printcap name = /usr/local/samba/lib/printcap
   print command = /bin/lp -c -d%p %s
   lpq command = /bin/lpstat -o%p
   lprm command = /bin/cancel %p-%j
   lppause command = /bin/lp -i %p-%j -H hold
   lpresume command = /bin/lp -i %p-%j -H resume
   load printers = yes
   use client driver = yes

[printers]
   comment = Printers
   path = /tmp
   printable = yes
   create mode = 0755
   browseable = yes
   public = no
   guest ok = yes
   print ok = yes


[lasersys]
   comment = systems laser printer
   browseable = yes
   printer = laser_sys
   create mode = 0755
   printable = yes
   guest ok = yes



The following is the contents of the printcap file:

laser_sys| hp laserjet 8150

lpstat -t generates the following:

# lpstat -t
scheduler is running
system default destination: laser_sys
system for _default: library4 (as printer laser_sys)
device for laser_sys: /dev/laser_sys
_default accepting requests since Tue Nov 19 14:33:56 EST 2002
laser_sys accepting requests since Tue Nov 19 14:33:56 EST 2002
printer laser_sys is idle. enabled since Tue Nov 19 14:33:56 EST 2002.
available.
#


Thanks in advance for any help/suggestion you can provide. It would
great to get this working!

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba