Re: [Samba] Group file ownership...

2003-01-20 Thread Brad
Thank you to all those that have replied.

I have resolved the problem by using:

force group = users
force directory mode = 0770
inherit permissions = yes

Regards,
Brad


On Sunday 19 January 2003 03:39, bri wrote:
> I've been trying to figure out the same problem
>
> I've been investigating umask settings in /etc/bashrc, setting the setgid
> bit on the directories with chmod and also using inherit permissions = yes
> in the samba configuation file
>
> I've also tried the following smb.conf options:
>create mask = 0770
>force create mode = 000
>directory mask = 2775
>
> Let me know if you find a workable solution - I'm still searching
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Brad
> Sent: Friday, January 17, 2003 1:32 AM
> To: Sambauser mailing list
> Subject: [Samba] Group file ownership...
>
>
> We have a Red Hat 7.3 file server that serves about 30 Windows PCs via
> Samba 2.2.3a.
>
> I have one group called "users" that everyone is in but when a file is
> created
> by a PC, the group ownership on the created file is not "users", but the
> same
> as the file owner name. Is there any way to force the group ownership of
> created files?
>
> Also, is there any way to force file ownersip to a given user on newly
> created
> files?
>
> Regards,
> Brad

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



[Samba] Can't write to a samba share...

2003-03-09 Thread Brad
I have a Red Hat 8.0 PC with a scanner connected and I am scanning images with 
sane. I would like to store the scanned images on a Red Hat 7.3 file server 
using Samba, but I am having some difficulty understanding how the file and 
directory security preferences work.

I can attach to the share (called "Shared") with:

smbmount //server/Shared /mnt/S -o username=username%password

and can read the contents with no problems. When I do this as root on the 
scanner workstation, I can write to it with no problems. However, when I log 
in on the scanner workstation as a regular user (ie not root), I cannot write 
to the remote share. If I manually log in to the Server as the username and 
password, I can write to the shared directory OK. 

If I do an ls -ls of S from within the /mnt directory, I get:

4 drwxr-xr-x1 root root 4096 Mar 10  2003 S

so it is clearly not writable by the user.


Here is the server smb.conf settings:

[global]
workgroup = WORKGROUP
server string = Samba Server
log level = 2
log file = /var/log/samba/log.%m

[Shared]
comment = Shared Directories
path = /home/Shared
valid users = @users
writable = true
force group = users
force directory mode = 770
inherit permissions = yes

The workstation username has a valid login on the server and is part of the 
"users" group. I have tried to add "-o rw" to the smbmount command, but it is 
still the same. I have then added "write list = @users" to the "Shared" share 
settings in the server smb.conf file, but I still can't write to it.

I have increased the server smb.conf log level to 4 and then done a "touch 
/mnt/S/test" on the scanner workstation and have looked at 
/var/log/samba/scannerworkstationname on the server and  and this is what it 
says:

[2003/03/10 17:18:11, 3] smbd/process.c:process_smb(860)
  Transaction 40 of length 84
[2003/03/10 17:18:11, 3] smbd/process.c:switch_message(667)
  switch message SMBtrans2 (pid 13071)
[2003/03/10 17:18:11, 4] smbd/uid.c:change_to_user(118)
  change_to_user: Skipping user change - already user
[2003/03/10 17:18:11, 3] smbd/trans2.c:call_trans2qfilepathinfo(1615)
  call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1
[2003/03/10 17:18:11, 3] lib/util.c:unix_clean_name(387)
  unix_clean_name [/rr]
[2003/03/10 17:18:11, 3] lib/util.c:unix_clean_name(387)
  unix_clean_name [rr]
[2003/03/10 17:18:11, 3] smbd/trans2.c:call_trans2qfilepathinfo(1636)
  call_trans2qfilepathinfo: vfs_stat of rr failed (No such file or directory)
[2003/03/10 17:18:11, 3] smbd/error.c:error_packet(91)
  error string = No such file or directory
[2003/03/10 17:18:11, 3] smbd/error.c:error_packet(115)
  error packet at smbd/trans2.c(1638) cmd=50 (SMBtrans2) eclass=1 ecode=2


Does anyone have any ideas why this is happening?

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


[Samba] Printing with Samba...

2002-10-21 Thread Brad
I have an HP laser connected to a Red Hat 7.3 server and I would like to be 
able to share the laser so that I can print to it from Windows clients. There 
is no X on the server so I will have to use the CIF.

I have read the Red Hat documentation but it mostly refers to the GUI tools. 
Can anyone point me to a resource on the WWW that will help me with this?

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



[Samba] Samba & CUPS...

2002-10-22 Thread Brad
I have an HP Laser connected to the parallel port on a Red hat 8.0 server and 
I have configured it to print with CUPS. It prints a test page OK, but I 
would now like to share the printer so that Windows clients can print to it.

According to the documentation, all I need to put in the smb.conf file is:

printing = cups
printcap name = cups

I have restarted samba and cups but the printer stil doesn't appear in Network 
Neighbourhood.

Does anyone have any ideas?
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] How important are oplocks?

2002-12-18 Thread Brad
Hi Bob.

I had never had anything to do with the oplocks switch with routine samba 
shares for file access, but I recently commissioned a new Samba server (Red 
Hat 8.0) which is running a Windows time and attendance database and we had 
intermittent problems opening a database session from various Windows PCs. 
The Windows error was indicating that the database was in use and could not 
be accessed by another user. Sure enough, when no one was logged in and one 
workstation accessed the database, they could apparently get in every time. 
However, this is a multi-user database that everyone should be able to get in 
to.

By applying "oplocks = no" to the samba share, the problem was solved with 
everyone now able to open a session every time. As speed is not crucial to 
our usage I have not noticed any speed degradation.

Regards,
Brad


On Wednesday 18 December 2002 17:00, [EMAIL PROTECTED] wrote:
> Hello,
>
> I'm wondering just how critical it really is to turn off oplocks.  It
> appears that not only Windows 2k server, but also Netware 5 and above
> defaults to having these enabled.
>
> I just spoke with two software companies running databases off of file
> servers (no database server, just MDAC stuff), and they had never heard of
> it, much less require it to be disabled.  Everything I've read online says
> to turn them off, but I'm getting a serious performance hit with these
> turned off, compared to the Netware server that Samba just replaced.
>
> Comments???
>
> Bob

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



[Samba] Printing with CUPS & Samba...

2002-12-31 Thread Brad
I am trying to print from both a Win98 PC via Samba and a Red Hat 8.0
workstation to an HP 4 Plus printer that is connected to a Red Hat 8.0
server. I have managed to get the Win98 PC working OK, but am having
difficulty with the RH8 workstation.

I set the printer up using a browser with :631, calling it HP4Plus,
and I can send a test print from the browser on the RH8 box via :631.

I can view and access the other server samba shares OK, but I am unable to 
send it a print job from the RH8 box.

First of all on the RH8 box, I tried to set the printer as a UNIX Printer (lpd
Queue) and named the server IP address and Queue name, but that didn't work. I 
have than told it that the printer is a Windows printer with the following 
settings:

The Queue Type=Windows Share Name (HP4Plus)
Username = valid user
Password = valid password
Host Ip - IP address of the server that is connected to the printer
Workgroup = Windows workgroup (workgroup)

I restarted cups, but it still doesn't print, and there are no entries in the
/var/log/cups logs when I am trying to use Samba, but when I nominate the
printer as a UNIX Printer (lpd Queue) I get in the /var/log/cups/access_log:

 - - [31/Dec/2002:18:59:37 +1000] "POST / HTTP/1.1" 200 140
- - [31/Dec/2002:18:59:37 +1000] "POST / HTTP/1.1" 200 140
- - [31/Dec/2002:18:59:37 +1000] "POST / HTTP/1.1" 200 80
- - [31/Dec/2002:18:59:37 +1000] "POST /printers/HP4Plus HTTP/1.1" 200 
11231

where  is the server that the printer is connected to.

and in the /var/log/cups/error_log:

E [31/Dec/2002:18:59:37 +1000] print_job: Unsupported format
'application/octet-stream'!

It would seem that printing via Samba would be the best option, but I have not 
been able to get it working with Red Hat 8 and Samba AT ALL.


In the Global part of smb.conf, I have:

load printers = yes
printing = cups
printcap name = cups


and in the shares part of smb.conf, I have:


[printers]
comment = All Printers
path = /var/spool/samba
browseable = no

[print$]
comment = Printer Drivers
path = /etc/samba/drivers
browseable = yes


I have tried removing these last 2 entries, but when I do the Win98 PC can't 
see the printer.

I have just about run out of ideas. Can anyone shed any light on this?

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



Re: [Samba] Printing with CUPS & Samba...

2002-12-31 Thread Brad
Thanks for your reply, Jim.

On Wednesday 01 January 2003 15:45, you wrote:

> I have a similar setup: Linux server with printer, Linux client, WinXP
> client.  The print manager on the server is CUPS.  I have Samba set up
> similar to what you described, and the WinXP machine is able to print to it
> (but not see the print queue; I posted a question recently about that).
> As for the client, I de-installed lprng and installed cups.
> /etc/cups/client.conf is empty, i.e. all comments.  

So this is on the client (Red Hat 8 box)? And do you have cups installed on 
the client? And have you made any changes to the cupsd.conf file on the 
client?

> Thus it relies on
> broadcasts from the server to know what printer(s) are available.  It works
> great.  No administrative hassle on the client, and no involvement with
> Samba.  The Samba solution could be made to work but is probably not worth
> the effort.

And did you tell it where the printer was? I read that the server broadcasts 
the printer availability, but it doesn't seem to work here. For example, are 
you suggesting that I should be able to just start OpenOffice writer and send 
a print job to the "genetic printer" (default) and it will know that there is 
a CUPS server present and so send it to the server?

> The client is a laptop, and when I take it to work it hears the CUPS
> broadcast and can access the work printers.
>
> CUPS broadcasts are on by default.  It's governed by "Browsing On" (or Off)
> in /etc/cups/cupsd.conf on the server.

Can you please post (or email) your cupsd.conf?

>
> It turns out that Win2K and WinXP have CUPS (IPP) support natively!
> There's an add-on for WinME; I don't know about NT or 95-98.  In the
> "Add Printer Wizard", specify http printing and give a URL similar to:
> http://server.company.com:631/printers/lp
> (assuming "lp" is the print queue on the server).  The only downside is
> that the print queue display looks funny, but maybe that's just because I
> haven't used it on big print jobs that would stay in the queue.

I have used Samba and it works fine, but I will try this method too.

I have spent a couple of days (!) on this and so am greatly relieved to get a 
reply!

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



[Samba] Group file ownership...

2003-01-16 Thread Brad
We have a Red Hat 7.3 file server that serves about 30 Windows PCs via Samba 
2.2.3a.

I have one group called "users" that everyone is in but when a file is created 
by a PC, the group ownership on the created file is not "users", but the same 
as the file owner name. Is there any way to force the group ownership of 
created files?

Also, is there any way to force file ownersip to a given user on newly created 
files?

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



[Samba] Printing...

2002-10-15 Thread Brad

I am using Red Hat 8.0 and I am trying to get an HP LaserJet 4 Plus to become 
a shared printer so networked Windows PCs can print to it. I have Samba 
working fine for sharing files with Windows PCs and I have begun wading 
through the Samba documentation to enable printing and I have come up with an 
smb.conf entry that looks like this:

[HP4Plus]
guest ok = yes
comment = Brad's HP Laser
printable = yes
writable = yes
path = /var/spool/samba

Testparm says all is OK but my Win2K PC still can't see it, so do I need to do 
anything else? I know that there are GUI tools available, but I have to do 
this on a couple of different version Red Hat servers that don't have X 
installed, so I would like to be able to do it manually if I can. The Samba 
docs are pretty heavy going for me so any advice would be appreciated.

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



Re: [Samba] Printing...

2002-10-16 Thread Brad

Yes, it can print OK. But I can't even connect to the Samba printer share with 
Win2K.

Regards,
Brad

On Wednesday 16 October 2002 20:08, you wrote:
> Can your linux box print to it? if linux can then so can samba, if not then
> samba can't
>
>
>
> Brad
>  list <[EMAIL PROTECTED]> es.org.au>  cc:
> Sent by:Subject: [Samba]
> Printing... [EMAIL PROTECTED]
> rg
>
>
> 16/10/2002 06:26
>
>
>
>
>
>
> I am using Red Hat 8.0 and I am trying to get an HP LaserJet 4 Plus to
> become
> a shared printer so networked Windows PCs can print to it. I have Samba
> working fine for sharing files with Windows PCs and I have begun wading
> through the Samba documentation to enable printing and I have come up with
> an
> smb.conf entry that looks like this:
>
> [HP4Plus]
> guest ok = yes
> comment = Brad's HP Laser
> printable = yes
> writable = yes
> path = /var/spool/samba
>
> Testparm says all is OK but my Win2K PC still can't see it, so do I need to
> do
> anything else? I know that there are GUI tools available, but I have to do
> this on a couple of different version Red Hat servers that don't have X
> installed, so I would like to be able to do it manually if I can. The Samba
>
> docs are pretty heavy going for me so any advice would be appreciated.
>
> Regards,
> Brad

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



[Samba] linux newbie classes taught by Chris de Vidal

2003-02-14 Thread Brad Peters
In one of your replies to the attention newbies...
series, you mentioned you teach a linux newbie class.
I'm interested (seriously, or sarcasm) in checking out
one of your seminars. Where do I get information?

Brad Peters
[EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] ACL permissions with XP problem

2003-02-27 Thread Brad Sagowitz
Wondering if anyone can help...

here is my setup:

RedHat 7.3 with XFS (using the XFS install disk)
After installation I'd downloaded 2.2.7 src rpm from redhat and rebuilt it
with the --with-acl-support option in the samba.spec file
then upgraded the resulting rpm files
I've added the machine accounts and made root a smb user
I can log in successfully(after applying the xp registry hack), the problem
comes in when I try to change permission on a file from windows explorer.
For example adding users to give them rwx permissions on a file gives me
access denied.
Now... I tried getfacl and setfacl and both work.  When I use setfacl on a
file and add a user, that user does not show up on the security tab in XP.
And one other thing... I check the log for the XP machine and it has this
error
"is104 (192.168.0.104) couldn't find service screenings"

Any help would be greatly appreciated

Thanks




here is my smb.conf file:

[global]
smb passwd file = /etc/samba/smbpasswd
passwd program = /usr/bin/passwd %u
domain master = yes
dns proxy = no
encrypt passwords = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
short preserve case = no
printcap name = /etc/printcap
wins support = yes
max log size = 0
preferred master = yes
logon script = %U.bat
password level = 4
passwd chat = *New*password* %n\n *Retype*new*password* %n\n
*passwd:*all*authentication*tokens*updated*successfully*
security = user
domain logons = yes
unix password sync = Yes
workgroup = JDMC
server string = JDMC Samba Server
local master = yes
netbios name = THE-SCOOP
log file = /var/log/samba/%m.log
load printers = no
os level = 64

[netlogon]
path = /home/netlogon
public = no
read only = yes

[homes]
path = %H
volume = Private
writable = yes
comment = Private Share
valid users = %S
browseable = no
create mode = 0764
directory mode = 0775

[general]
path = /shares/general
writeable = yes
public = yes
valid users = @users,@root,root
force group = users
force create mode = 764

Brad Sagowitz
Operating Systems Specialist III
A+, MCP, Linux+, CCAI-UNIX
1125 E. Alameda
Norman, OK 73071
[EMAIL PROTECTED]

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


RE: [Samba] ACL permissions with XP problem

2003-02-28 Thread Brad Sagowitz
My understanding was that nt acl support = yes was a default... but I added
it anyway and restarted to no avail.

Whenever I edit a files permissions (as root) from a XP client I get the
error

"Unable to save permission changes on 
 Access is denied. "



-Original Message-
From: Thomas Klettke [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 11:16 AM
To: Brad Sagowitz
Cc: [EMAIL PROTECTED]
Subject: Re: [Samba] ACL permissions with XP problem


I've added a line to the share in smb.conf:

nt acl support = yes

See if that helps.

Thomas


On Thu, 2003-02-27 at 09:47, Brad Sagowitz wrote:
> Wondering if anyone can help...
>
> here is my setup:
>
> RedHat 7.3 with XFS (using the XFS install disk)
> After installation I'd downloaded 2.2.7 src rpm from redhat and rebuilt it
> with the --with-acl-support option in the samba.spec file
> then upgraded the resulting rpm files
> I've added the machine accounts and made root a smb user
> I can log in successfully(after applying the xp registry hack), the
problem
> comes in when I try to change permission on a file from windows explorer.
> For example adding users to give them rwx permissions on a file gives me
> access denied.
> Now... I tried getfacl and setfacl and both work.  When I use setfacl on a
> file and add a user, that user does not show up on the security tab in XP.
> And one other thing... I check the log for the XP machine and it has this
> error
> "is104 (192.168.0.104) couldn't find service screenings"
>
> Any help would be greatly appreciated
>
> Thanks
>
>
>
>
> here is my smb.conf file:
>
> [global]
>   smb passwd file = /etc/samba/smbpasswd
>   passwd program = /usr/bin/passwd %u
>   domain master = yes
>   dns proxy = no
>   encrypt passwords = yes
>   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
>   short preserve case = no
>   printcap name = /etc/printcap
>   wins support = yes
>   max log size = 0
>   preferred master = yes
>   logon script = %U.bat
>   password level = 4
>   passwd chat = *New*password* %n\n *Retype*new*password* %n\n
> *passwd:*all*authentication*tokens*updated*successfully*
>   security = user
>   domain logons = yes
>   unix password sync = Yes
>   workgroup = JDMC
>   server string = JDMC Samba Server
>   local master = yes
>   netbios name = THE-SCOOP
>   log file = /var/log/samba/%m.log
>   load printers = no
>   os level = 64
>
> [netlogon]
>   path = /home/netlogon
>   public = no
>   read only = yes
>
> [homes]
>   path = %H
>   volume = Private
>   writable = yes
>   comment = Private Share
>   valid users = %S
>   browseable = no
>   create mode = 0764
>   directory mode = 0775
>
> [general]
>   path = /shares/general
>   writeable = yes
>   public = yes
>   valid users = @users,@root,root
> force group = users
> force create mode = 764
>
> Brad Sagowitz
> Operating Systems Specialist III
> A+, MCP, Linux+, CCAI-UNIX
> 1125 E. Alameda
> Norman, OK 73071
> [EMAIL PROTECTED]

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


RE: [Samba] ACL permissions with XP problem

2003-02-28 Thread Brad Sagowitz
I dont have a win2k machine but I'm loading one now to see.   Thanks for
your help!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
Thomas Klettke
Sent: Friday, February 28, 2003 11:52 AM
To: Brad Sagowitz
Cc: [EMAIL PROTECTED]
Subject: RE: [Samba] ACL permissions with XP problem


No clue here yet, just guesses.

What happens when you repeat the experiment with a Windows 2000 (or NT)
client? I don't expect it to make a difference, but to rule out that XP
is the problem.

>From what I see so far it seems that there is a discrepancy between the
Unix and Samba IDs - not sure though.


On Fri, 2003-02-28 at 11:29, Brad Sagowitz wrote:
> My understanding was that nt acl support = yes was a default... but I
added
> it anyway and restarted to no avail.
>
> Whenever I edit a files permissions (as root) from a XP client I get the
> error
>
> "Unable to save permission changes on 
>  Access is denied. "
>
>
>
> -Original Message-
> From: Thomas Klettke [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 28, 2003 11:16 AM
> To: Brad Sagowitz
> Cc: [EMAIL PROTECTED]
> Subject: Re: [Samba] ACL permissions with XP problem
>
>
> I've added a line to the share in smb.conf:
>
> nt acl support = yes
>
> See if that helps.
>
> Thomas
>
>
> On Thu, 2003-02-27 at 09:47, Brad Sagowitz wrote:
> > Wondering if anyone can help...
> >
> > here is my setup:
> >
> > RedHat 7.3 with XFS (using the XFS install disk)
> > After installation I'd downloaded 2.2.7 src rpm from redhat and rebuilt
it
> > with the --with-acl-support option in the samba.spec file
> > then upgraded the resulting rpm files
> > I've added the machine accounts and made root a smb user
> > I can log in successfully(after applying the xp registry hack), the
> problem
> > comes in when I try to change permission on a file from windows
explorer.
> > For example adding users to give them rwx permissions on a file gives me
> > access denied.
> > Now... I tried getfacl and setfacl and both work.  When I use setfacl on
a
> > file and add a user, that user does not show up on the security tab in
XP.
> > And one other thing... I check the log for the XP machine and it has
this
> > error
> > "is104 (192.168.0.104) couldn't find service screenings"
> >
> > Any help would be greatly appreciated
> >
> > Thanks
> >
> >
> >
> >
> > here is my smb.conf file:
> >
> > [global]
> > smb passwd file = /etc/samba/smbpasswd
> > passwd program = /usr/bin/passwd %u
> > domain master = yes
> > dns proxy = no
> > encrypt passwords = yes
> > socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
> > short preserve case = no
> > printcap name = /etc/printcap
> > wins support = yes
> > max log size = 0
> > preferred master = yes
> > logon script = %U.bat
> > password level = 4
> > passwd chat = *New*password* %n\n *Retype*new*password* %n\n
> > *passwd:*all*authentication*tokens*updated*successfully*
> > security = user
> > domain logons = yes
> > unix password sync = Yes
> > workgroup = JDMC
> > server string = JDMC Samba Server
> > local master = yes
> > netbios name = THE-SCOOP
> > log file = /var/log/samba/%m.log
> > load printers = no
> > os level = 64
> >
> > [netlogon]
> > path = /home/netlogon
> > public = no
> > read only = yes
> >
> > [homes]
> > path = %H
> > volume = Private
> > writable = yes
> > comment = Private Share
> > valid users = %S
> > browseable = no
> > create mode = 0764
> > directory mode = 0775
> >
> > [general]
> > path = /shares/general
> > writeable = yes
> > public = yes
> > valid users = @users,@root,root
> > force group = users
> > force create mode = 764
> >
> > Brad Sagowitz
> > Operating Systems Specialist III
> > A+, MCP, Linux+, CCAI-UNIX
> > 1125 E. Alameda
> > Norman, OK 73071
> > [EMAIL PROTECTED]
--
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] ACL permissions with XP problem

2003-02-28 Thread Brad Sagowitz
I have
libacl-2.0.9-0
libattr-2.0.7-0

But I'm very hesitant to upgrade I did this once and I couldn't even ls
after upgrade.
guess I back-up everything and give it a whirl.

anyone have a good location for rpms?


-Original Message-
From: Raphael Berghmans [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 12:57 PM
To: Brad Sagowitz
Cc: [EMAIL PROTECTED]
Subject: Re: [Samba] ACL permissions with XP problem


Hi,

Which version of libacl and libattr do you use ?

Because I think that for samba you need at least de version 2.0.12.

See you,

Raphaël


On Thu, 2003-02-27 at 16:47, Brad Sagowitz wrote:
> Wondering if anyone can help...
>
> here is my setup:
>
> RedHat 7.3 with XFS (using the XFS install disk)
> After installation I'd downloaded 2.2.7 src rpm from redhat and rebuilt it
> with the --with-acl-support option in the samba.spec file
> then upgraded the resulting rpm files
> I've added the machine accounts and made root a smb user
> I can log in successfully(after applying the xp registry hack), the
problem
> comes in when I try to change permission on a file from windows explorer.
> For example adding users to give them rwx permissions on a file gives me
> access denied.
> Now... I tried getfacl and setfacl and both work.  When I use setfacl on a
> file and add a user, that user does not show up on the security tab in XP.
> And one other thing... I check the log for the XP machine and it has this
> error
> "is104 (192.168.0.104) couldn't find service screenings"
>
> Any help would be greatly appreciated
>
> Thanks
>
>
>
>
> here is my smb.conf file:
>
> [global]
>   smb passwd file = /etc/samba/smbpasswd
>   passwd program = /usr/bin/passwd %u
>   domain master = yes
>   dns proxy = no
>   encrypt passwords = yes
>   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
>   short preserve case = no
>   printcap name = /etc/printcap
>   wins support = yes
>   max log size = 0
>   preferred master = yes
>   logon script = %U.bat
>   password level = 4
>   passwd chat = *New*password* %n\n *Retype*new*password* %n\n
> *passwd:*all*authentication*tokens*updated*successfully*
>   security = user
>   domain logons = yes
>   unix password sync = Yes
>   workgroup = JDMC
>   server string = JDMC Samba Server
>   local master = yes
>   netbios name = THE-SCOOP
>   log file = /var/log/samba/%m.log
>   load printers = no
>   os level = 64
>
> [netlogon]
>   path = /home/netlogon
>   public = no
>   read only = yes
>
> [homes]
>   path = %H
>   volume = Private
>   writable = yes
>   comment = Private Share
>   valid users = %S
>   browseable = no
>   create mode = 0764
>   directory mode = 0775
>
> [general]
>   path = /shares/general
>   writeable = yes
>   public = yes
>   valid users = @users,@root,root
> force group = users
> force create mode = 764
>
> Brad Sagowitz
> Operating Systems Specialist III
> A+, MCP, Linux+, CCAI-UNIX
> 1125 E. Alameda
> Norman, OK 73071
[EMAIL PROTECTED]
--
Raphael Berghmans <[EMAIL PROTECTED]>

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


RE: [Samba] ACL permissions with XP problem

2003-02-28 Thread Brad Sagowitz
You say to recompile samba... I compiled samba from the source rpms should I
do this again?

This will have to wait till monday as I'm going to make an image of my /
before doing this  =)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
Raphael Berghmans
Sent: Friday, February 28, 2003 1:30 PM
To: Brad Sagowitz
Cc: [EMAIL PROTECTED]
Subject: RE: [Samba] ACL permissions with XP problem


Hi,

You can find last version of XFS ACL here :
ftp://rpmfind.net/linux/SGILinux/cmd_rpms/i386

This version works with RH 7.3, do not hesitate to upgrade !

Do not forget to install the devel of acl and attr. And recompile Samba.

See you,

Raphaël


On Fri, 2003-02-28 at 20:14, Brad Sagowitz wrote:
> I have
> libacl-2.0.9-0
> libattr-2.0.7-0
>
> But I'm very hesitant to upgrade I did this once and I couldn't even
ls
> after upgrade.
> guess I back-up everything and give it a whirl.
>
> anyone have a good location for rpms?
>
>
> -Original Message-
> From: Raphael Berghmans [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 28, 2003 12:57 PM
> To: Brad Sagowitz
> Cc: [EMAIL PROTECTED]
> Subject: Re: [Samba] ACL permissions with XP problem
>
>
> Hi,
>
> Which version of libacl and libattr do you use ?
>
> Because I think that for samba you need at least de version 2.0.12.
>
> See you,
>
> Raphaël
>
>
> On Thu, 2003-02-27 at 16:47, Brad Sagowitz wrote:
> > Wondering if anyone can help...
> >
> > here is my setup:
> >
> > RedHat 7.3 with XFS (using the XFS install disk)
> > After installation I'd downloaded 2.2.7 src rpm from redhat and rebuilt
it
> > with the --with-acl-support option in the samba.spec file
> > then upgraded the resulting rpm files
> > I've added the machine accounts and made root a smb user
> > I can log in successfully(after applying the xp registry hack), the
> problem
> > comes in when I try to change permission on a file from windows
explorer.
> > For example adding users to give them rwx permissions on a file gives me
> > access denied.
> > Now... I tried getfacl and setfacl and both work.  When I use setfacl on
a
> > file and add a user, that user does not show up on the security tab in
XP.
> > And one other thing... I check the log for the XP machine and it has
this
> > error
> > "is104 (192.168.0.104) couldn't find service screenings"
> >
> > Any help would be greatly appreciated
> >
> > Thanks
> >
> >
> >
> >
> > here is my smb.conf file:
> >
> > [global]
> > smb passwd file = /etc/samba/smbpasswd
> > passwd program = /usr/bin/passwd %u
> > domain master = yes
> > dns proxy = no
> > encrypt passwords = yes
> > socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
> > short preserve case = no
> > printcap name = /etc/printcap
> > wins support = yes
> > max log size = 0
> > preferred master = yes
> > logon script = %U.bat
> > password level = 4
> > passwd chat = *New*password* %n\n *Retype*new*password* %n\n
> > *passwd:*all*authentication*tokens*updated*successfully*
> > security = user
> > domain logons = yes
> > unix password sync = Yes
> > workgroup = JDMC
> > server string = JDMC Samba Server
> > local master = yes
> > netbios name = THE-SCOOP
> > log file = /var/log/samba/%m.log
> > load printers = no
> > os level = 64
> >
> > [netlogon]
> > path = /home/netlogon
> > public = no
> > read only = yes
> >
> > [homes]
> > path = %H
> > volume = Private
> > writable = yes
> > comment = Private Share
> > valid users = %S
> > browseable = no
> > create mode = 0764
> > directory mode = 0775
> >
> > [general]
> > path = /shares/general
> > writeable = yes
> > public = yes
> > valid users = @users,@root,root
> > force group = users
> > force create mode = 764
> >
> > Brad Sagowitz
> > Operating Systems Specialist III
> > A+, MCP, Linux+, CCAI-UNIX
> > 1125 E. Alameda
> > Norman, OK 73071
> [EMAIL PROTECTED]
> --
> Raphael Berghmans <[EMAIL PROTECTED]>
--
Raphael Berghmans <[EMAIL PROTECTED]>

--
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] ACL Permissions with XP problem

2003-03-03 Thread Brad Sagowitz
Max... this was my problem.  I had loaded acl-dev... but it didn't compile.
I installed the new updates with the ones Raphael supplied then recompiled
samba from src rpms and installed with the --force option.  Everything works
great!!!

Thanks EVERYONE I really appreciate all the help!

Brad Sagowitz
Operating Systems Specialist III
A+, MCP, Linux+, CCAI-UNIX
1125 E. Alameda
Norman, OK 73071
(405) 307-2883

> RedHat 7.3 with XFS (using the XFS install disk)
> After installation I'd downloaded 2.2.7 src rpm from redhat and
> rebuilt it with the --with-acl-support option in the samba.spec file

Did you have "acl-dev" installed when compiling Samba? Of not, the
configure-process will kick ACL-support but continue compiling although
you specified --with-acl-support.

Make sure your smbd has ACL-support built in:

  ldd /usr/sbin/smbd

The output should contain something like

  "libacl.so.1 => /lib/libacl.so.1"

So long,
Max



Brad Sagowitz
Operating Systems Specialist III
A+, MCP, Linux+, CCAI-UNIX
1125 E. Alameda
Norman, OK 73071
(405) 307-2883

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


Re: [Samba] POSIX to NT ACL bug

2003-03-03 Thread Brad Sagowitz
I JUST got over this problem with help here on the mailing list... what 
version/distro of linux are you running?

Brad Sagowitz





Sergey Zhitomirsky wrote:

Hello
recently I set up XFS share under samba , and played from Win2K 
with ACL entries of shared files, 
and noticed that
Win2K never  DENY  ACL entries , 
so for example for a XFS file with acl: 

# owner: a
user::r--
group::rwx
other::rwx
 Win2K security tab  shows for user "a": 
  Read & exec = 
  Read= Allowed
  Write   = 

But in fact, POSIX ACL will allow user "a" to read from the file
and deny write or execute the file , as posix acl will not consult any
other ACL entries, after founding  appropriate  user:  entry. 

 So, shown by Win2K  flags are  wrong, and must be instead : 
  Read & exec = Deny
  Read= Allowed
  Write   = Deny

 as NT ACL logic suppose, as far as know(?), that in case 
 father ACL entries will be consulted, so in this case  NT user suppose
 that he has "rwx" rights on the file  due to  other::rwx rule 
 (-> Everybody, Full Access=Allowed)

 but when tried to write - receive Permission Denied. 

 So that is a samba bug, as samba must have send DENY for "write" and
 "execute" and ALLOW for "read"   for this user's file ("user::r--")  ,
 but now it just sends ALLOW for "read".
I have samba-2.2.7a, 
./configure --with-acl-support --with-ssl --with-smbmount --disable-cups 
 --with-smbwrapper --with-vfs --with-libsmbclient --disable-swat 

Sergey.

 



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


[Samba] Samba & Terminal Services / Citrix

2003-06-03 Thread Portelance, Brad
Hello!
 
I have heard that there is a problem with using Samba along with Windows
Terminal Services and that it's related to session IDs with multiple users
coming from one server.
 
I'm in the process of moving to Windows Server 2003 using Citrix and hoping
to be able to revive our samba use.
 
Has anyone had any success with using samba in a Terminal Server / Citrix
environment?
 
Thanks in advance for any information!
 
Brad
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] update group

2002-11-12 Thread Brad Ching




Hello:
   I update redhat from 7.2 to 8.0 
yesterday.But i find i can not use chgrp command to change folders or files 
group.And always tell me not find group name in group file. In fact i create all 
group that i need in redhat7.2 and use it very well.Who know have any problem 
for redhat8.0 group when i update .
Pls tell me, thank you very 
much!


[Samba] samba log problem

2002-11-13 Thread Brad Ching
Dear all:
 I use samba as Domain like NT server.Yesterday some people delete
files through samba share.I check samba log in /var/log/samba but i can not
find delete record( who done/which ip address/what netbios etc.)
How can i do for samba security?Pls tell me more or give me document for
this.
Thank very much.

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



[Samba] samba connect error

2002-11-17 Thread Brad Ching
Dear all:
 When i use samba share file and program, i find always have a error"Too
many open files in system".Then you can not login as root,you can not do
anything,but you can only use command 'ps -A ' find smbd process and use
command ' kiss -9 ',next you can use all.So i think maybe smbd
process too many open and didn't have any good idea for this.
 Anybody know this and have a good idea,pls tell me.Thanks very much.
 Bye the way, i want to know how many samba connect when i start smaba
service?


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



[Samba] samba connect error

2002-11-18 Thread Brad Ching
Dear all:
 When i use samba share file and program, i find always have a error"Too
many open files in system".Then you can not login as root,you can not do
anything,but you can only use command 'ps -A ' find smbd process and use
command ' kiss -9 ',next you can use all.So i think maybe smbd
process too many open and didn't have any good idea for this.
 Anybody know this and have a good idea,pls tell me.Thanks very much.
 Bye the way, i want to know how many samba connect when i start smaba
service?


Brad Ching
Nov-18-2002

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



[Samba] nobody can answer this question?It's very important for me.

2002-11-18 Thread Brad Ching
Dear all:
 When i use samba share file and program, i find always have a error"Too
many open files in system".Then you can not login as root,you can not do
anything,but you can only use command 'ps -A ' find smbd process and use
command ' kiss -9 ',next you can use all.So i think maybe smbd
process too many open and didn't have any good idea for this.
 Anybody know this and have a good idea,pls tell me.Thanks very much.
 Bye the way, i want to know how many samba connect when i start smaba
service?


Brad Ching
Nov-18-2002

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



[Samba] samba connect error

2002-11-18 Thread Brad Ching
Dear all:
 When i use samba share file and program, i find always have a error"Too
many open files in system".Then you can not login as root,you can not do
anything,but you can only use command 'ps -A ' find smbd process and use
command ' kiss -9 ',next you can use all.So i think maybe smbd
process too many open and didn't have any good idea for this.
 Anybody know this and have a good idea,pls tell me.Thanks very much.
 Bye the way, i want to know how many samba connect when i start smaba
service?


Brad Ching
Nov-18-2002

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



Re: [Samba] nobody can answer this question?It's very important for me.

2002-11-18 Thread Brad Ching
First,thank you reply.
I use redhat7.2 operating system on samba host,and windows client os is
win98.
We have 400 computer on my company.I think have less than 100 pc use server
program at same time.
I'm sorry i didn't tell you samba version because i am stay in home now.
- Original Message -
From: "Frank Matthieß" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 18, 2002 10:59 PM
Subject: Re: [Samba] nobody can answer this question?It's very important for
me.
Hope give you any message for help me,thank you again.


> On Mon, Nov 18, 2002 at 10:42:53PM +0800, Brad Ching wrote:
> > Dear all:
> >  When i use samba share file and program, i find always have a
error"Too
> > many open files in system".Then you can not login as root,you can not do
> > anything,but you can only use command 'ps -A ' find smbd process and use
> > command ' kiss -9 ',next you can use all.So i think maybe
smbd
> > process too many open and didn't have any good idea for this.
> >  Anybody know this and have a good idea,pls tell me.Thanks very
much.
> >  Bye the way, i want to know how many samba connect when i start
smaba
> > service?
>
> Which operating system on samba host?
> Which windows client os?
> Which exact samba version? ("smbstatus")
>
> My crystal ball is currently out order ;-)
>
> --
> Frank Matthieß
[EMAIL PROTECTED]
>
> --
> 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



[Samba] I want to know how many samba user connect at same time?

2002-11-18 Thread Brad Ching
What can see it? Samba log,syslog or other place?

Thanks!

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



[Samba] help for lpd

2002-11-25 Thread Brad Ching



Today i install printer fro redhat7.2.When i set 
all printer and test it ok.
Then i restart lpd use command"/etc/rc.d/init.d/lpd 
restart"
Show me an error like this:
    
Starting lpd:2002-11-25-16:29:37 .459 localhost Read_file_list:cannot stat 
required file '/etc/printcap' -Permission denied
So i think that is permission for file 
printcap,check it and not find problem.
Who can help me? And have a goog idea 
?
Thanks very much!
  
 


[Samba] Re: user names with dots

2003-01-09 Thread Brad Peters
Have you tried using a wild card (IE chris*palmer...)
instead of the dot?

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] rpm build with samba

2002-04-18 Thread Brad Langhorst

Sam Khean wrote:

>Hi,
>I'm trying to figure out how to use rpmbuild with samba. I know you need to
>make a spec file, but i was wandering if there's like a file similiar to the
>redhat ks.cfg which tells you what packages you have installed. So you can
>use this file to automate the samba installation.
>
>Thanks
>
>
have a look in packaging/RedHat

brad



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



Re: [Samba] How do you configure SWAT to show all options with regularlogon id?

2002-05-05 Thread Brad Langhorst

[EMAIL PROTECTED] wrote:

>When I log into SWAT with my regular logon id it only shows me HOME 
>STATUS VIEW & PASSWORD configuration Links at the top of the page. 
>
>When I logon as "root" user I see all options. What do I need to 
>configure to give my regular login id access to all configuration 
>options in SWAT?
>
>
>  
>
put your regular user into the admin users field

brad



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



Re: [Samba] Samba as PDC and Win XP Pro Machine Accounts

2002-05-05 Thread Brad Langhorst

Fernando Maidana wrote:

>Hi there!
>I'm having problems to join a Machine Acount to a Samba PDC using Samba
>2.2.3a
>Even if I apply the registry Patch XP reports the following error:
>
>-
>Is possible that the Domain Name "FAMILIA" was a NetBios name.
>If is that the case, make sure that the Domain Name is correctly
>registred with WINS.
>
>If you're totaly sure that it isn't a NetBios name, the following
>information will help you to solve your DNS configuration problems.
>The following error was occured making a request to DNS for SRV used to
>find the Domain Controller in the FAMILIA Domain:
>
>The error was: (error code 0x05B4 ERROR_TIMEOUT)
>
>  
>
try configuring the clients to use the WINS server
192.168.1.1 as well

you can do this by dhcp like this

option domain-name-servers 192.168.1.1;
option subnet-mask 255.255.255.0;
default-lease-time 6000;
max-lease-time 72000;

subnet 192.168.1.0 netmask 255.255.255.0 {
  range 192.168.1.2 192.168.1.254;
  option broadcast-address 192.168.1.255;
  option routers 192.168.1.1;
  option netbios-name-servers 192.168.1.1;
}




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



Re: [Samba] How do you configure SWAT to show all options with regularlogon id?

2002-05-06 Thread Brad Langhorst

well  i think its still there

admin users (S)

This is a list of users who will be granted administrative
privileges on the share. This means that they will do all file
operations as the super-user (root).

You should use this option very carefully, as any user in this list
will be able to do anything they like on the share, irrespective of
file permissions.

Default: /no admin users/

Example: *admin users = jason*


try switching swat to "advanced" mode

brad

[EMAIL PROTECTED] wrote:

>I am using version 3.0-17 and I don't see an admin users field. Any 
>ideas where they may have changed it?
>
>-Original Message-
>From: brad [mailto:[EMAIL PROTECTED]]
>Sent: Sunday, May 05, 2002 11:19 AM
>To: drew.arthur
>Cc: samba
>Subject: Re: [Samba] How do you configure SWAT to show all options with
>regular logon id?
>
>
>[EMAIL PROTECTED] wrote:
>
>  
>
>>When I log into SWAT with my regular logon id it only shows me HOME 
>>STATUS VIEW & PASSWORD configuration Links at the top of the page. 
>>
>>When I logon as "root" user I see all options. What do I need to 
>>configure to give my regular login id access to all configuration 
>>options in SWAT?
>>
>>
>> 
>>
>>
>>
>put your regular user into the admin users field
>
>brad
>
>
>
>
>  
>




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



Re: [Samba] Samba as PDC and Win XP Pro Machine Accounts

2002-05-06 Thread Brad Langhorst

Fernando Maidana wrote:

> Hi Brad!
> Thanks for your help!!
> I try to configure de clientes to use the WINS server 192.168.1.1 in 
> the TCP/IP properties (Networking in the Control Panel) and the same 
> error occurs.  But I think that your method is pretty different 
> And I don't underestand it pretty well...
> The Machine IP (Windows XP Client) is 192.168.1.2 and is not using 
> DHCP, so the ip is Static.

not really - if you make all the settings manually then we should have 
the same result.

>  
>  
> How can I do to configure the DHCP as you suggest?

see below

>  
> option domain-name-servers 192.168.1.1;
> option subnet-mask 255.255.255.0;
> default-lease-time 6000;
> max-lease-time 72000;
>
> subnet 192.168.1.0 netmask 255.255.255.0 {
>   range 192.168.1.2 192.168.1.254;
>   option broadcast-address 192.168.1.255;
>   option routers 192.168.1.1;
>   option netbios-name-servers 192.168.1.1;
> }
> I don't underestand the previous statments... They are from the 
> smb.conf??? I think the answer is not But I'm newbie to Samba, 
> yesterday was my first day using it Is not bad for the first time 
> don't u think? :)

those statements are from dhcpd.conf - a separate program.
I didn't realize you were so new to things - you might have other 
simpler problems. See below for some suggestions

>  
> Another question, can I use Samba as DHCP server???
>  

Samba won't do DHCP by itself but's trivial to install a the dhcpd from 
the ISC for most distributions.
if you're using debian just type 'apt-get install dhcpd'
and modify the dhcpd.conf to look like the conf file I sent you.
You don't have to do this though - it should work fine with manual 
configuration.

> Well, thanks for your help again, and sorry to send you a personal 
> e-mail, but I can't find the way to post a reply in the mailing list!!! :(
>  

just do "reply all"
or type [EMAIL PROTECTED] in the cc line

> Fernando
>  
> Ps. Sorry about my english, is pretty bad Is not my native language.

I also speak spanish, but I think your english is better than my spanish

Are you "sure" that the registry patch worked?  It says that it does but 
I had to do it by hand using regedit
before.

Looking more carefully at your config file i think you need to set

domain logons=yes


brad

> Fernando Maidana wrote:
>
> >/Hi there!
> />/I'm having problems to join a Machine Acount to a Samba PDC using Samba
> />/2.2.3a
> />/Even if I apply the registry Patch XP reports the following error:
> />/
> />/-
> />/Is possible that the Domain Name "FAMILIA" was a NetBios name.
> />/If is that the case, make sure that the Domain Name is correctly
> />/registred with WINS.
> />/
> />/If you're totaly sure that it isn't a NetBios name, the following
> />/information will help you to solve your DNS configuration problems.
> />/The following error was occured making a request to DNS for SRV used to
> />/find the Domain Controller in the FAMILIA Domain:
> />/
> />/The error was: (error code 0x05B4 ERROR_TIMEOUT)
> />/
> />/ 
> />/
> /try configuring the clients to use the WINS server
> 192.168.1.1 as well
>
> you can do this by dhcp like this
>
> option domain-name-servers 192.168.1.1;
> option subnet-mask 255.255.255.0;
> default-lease-time 6000;
> max-lease-time 72000;
>
> subnet 192.168.1.0 netmask 255.255.255.0 {
>   range 192.168.1.2 192.168.1.254;
>   option broadcast-address 192.168.1.255;
>   option routers 192.168.1.1;
>   option netbios-name-servers 192.168.1.1;
> }
>
>




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



Re: [Samba] samba w/ multiple network cards/machines

2002-05-06 Thread Brad Langhorst

dionysus wrote:

>I have a fairly simple network running in my flat - there is a linux
>box with two network cards in it, and two network machines. I have the
>linux box set up to route traffic between the windows 98 machines and
>they can ping each other. I'm now trying to set up samba so the
>windows boxes can swap files thru smb. I have managed to get all
>machines to see each other (thru smbclient and network neighbourhood),
>but the windows ones can't connect to each other (The "\\machinename
>is not accessible" error). I am hoping to be able to do this without
>resorting to setting up a domain, or some complex password scheme (the
>"hosts allow" setting is more than enough security for me - if there
>was some way of turning off all other security I would use it).the
>network topology, software versions and relevant bits of my smb.conf
>file as are follows
>
>windows1: 192.168.0.2 (connected to linux box eth0)
>windows2: 192.168.1.2 (connected to linux box eth1)
>linux box: eth0: 192.168.0.1
>linux box: eth1: 192.168.1.1
>
too cheap for a hub eh ;)

>
>routing table specifies direct routes to windows1 and windows2 on the
>relevant interfaces
>
>samba vers 2.0.7, redhat vers 7.1 (fresh install)
>
this is old - should work fine - but you might do well with a more 
recent version

>
>guest account = pcguest
>security = user
>encrypt passwords = yes
>interfaces = 192.168.0.1/24 192.168.1.1/24
>local master = yes
>os level = 65
>preferred master = yes
>domain master = yes (AFAIK this needs to be here)
>wins support = yes (for wins server)
>
you need this here

>
>I have no idea why this doesn't work.
>
i think maybe your clients are not using the wins server
make sure you point those fields at the samba box.  You need it
because all your clients are not on the same subnet

>If anyone can come up with some idea, I would be absolutely stoked.
>Please email it to me if you can - I don't check the archives very
>often...
>Thanks heaps in advance
>
>-d
>
>  
>




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



Re: [Samba] Using a Norton Ghost with Samba and dos client bootdisk

2002-05-06 Thread Brad Langhorst

Adam Manock wrote:

> Test setup:
>
> Bart's (truly awesome) network boot disk
> http://www.nu2.nu/bootdisk/network/
> Norton Ghost 5.1d
> Samba 2.2.3a
>
> Ghost was tested dumping a local disk to an image on a mapped network 
> drive.
> Initial testing gave a horrible ghost image dump speed of 2MB / min
> Adding a parameter -SLOWFILE when starting ghost lifted this to > 
> 100MB / min
>
> I am guessing that without this switch Samba thinks it is being 
> flooded and
> throttles back accordingly???  Or maybe the dos tcp-ip stack gets 
> overloaded??
>
> Has anyone been doing similar imaging to Samba mapped network drives with
> newer ghost versions or other imaging tools? What kind of performance 
> have you
> been getting? Any problems? (I'd like to upgrade some day)
>
> Adam
>
>
the new ghost tools run on an NT machine and do "pulling" from the client
it works fine but you have to buy licenses for each machine and maintain 
an NT machine to act as the ghost server.

brad



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



Re: [Samba] Can't access a linux server using a Win2K client

2002-05-13 Thread Brad Langhorst

Kris Kelley wrote:

>Hello all.  I am new to Samba, so forgive me if this is a stupid
>question, but I have been unable to figure this out.
>
>I have a Red Hat 7.1 box (kernel 2.4.9) with the Samba 2.2.4-2 RPM
>installed.  I am trying to configure it so that Windows 2000 machines
>within my company's Windows domain can access it.  Before diving into
>anything exotic, I am trying to get this to work without requiring any
>kind of authentication.  So, this is my smb.conf file:
>
>   [global]
>  workgroup = DEVGROUP
>  security = share
>  netbios name = skunkworx
>   [test]
>  comment = test share
>  path = /export/samba/test
>  read only = no
>  guest only = yes
>  guest account = nobody
>  
>
i wish i could give you some clearer help  but i've not done this myself

i suggest you take a look in the log files
after adding
log level = 2
to your global section
/var/log/samba/log.smbd

another thing to try is to up your sambabox in a different workgroup (ie 
devgroup2)

if you don't know what to make of the results of your log file post them 
here.

brad


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



Re: [Samba] Wierd 2000/XP problem

2002-05-13 Thread Brad Langhorst

Kieran Farrell wrote:

>Heyas,
>
>Not so much sambas fault, 
>
not at all actually - this would happen even if you were logging in an 
NT domain.

>but when I log on as a user, some of my installed 
>software ceases to work. I get missing file errors, corrupt file errors etc.
>
>When I log on locally the programs work again. I had the same problem when I 
>was using 2000 server, I got around it by making all my users domain admins 
>(not preferable but it worked).
>  
>
you can do that with samba too - but the right fix is to loosen up the
permissions on the appropriate files on your clients. Finding out which 
files
will probably involve a fair amount of trial and error.

good luck!

brad


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



[Samba] Samba as a WINS Server

2002-05-27 Thread Portelance, Brad








Hello!

 

I was wondering if anyone knows of a way to get Samba to do
static mappings when it is acting as a WINS server?

 

Are there plans to incorporate this feature in to future releases?

 

Thanks much!

Brad








[Samba] Access rights?

2002-05-28 Thread Brad Grow



I can't figure out how I allow access to the 
shares. I can't access the shares from windows or linux. Any help would be 
greatly appreciated. 
 
Brad


[Samba] Windows XP using Samba WINS

2002-05-29 Thread Portelance, Brad
Title: Message



Hello!
 
I was wondering if 
anyone is aware of a problem with Samba Wins and Windows XP?
 
I am able to use the 
Samba Wins Server using Windows NT 4.0 just fine, but with Windows XP I only 
seem to see the first entry, that's it.
 
Thanks for any help 
in advance!!
Brad


[Samba] Problems joining an XP box to a Samba PDC domain

2002-05-30 Thread Brad O'Hearne

I am using RH 7.2 with Samba 2.2.4.  I have changed my smb.conf as
appropriate, added users on my linux box both on the machine and using
smbpasswd, and applied the XP patch to my registry.  This was according
to the PDC HOW-TO that comes with the source.  

Anyway, I am not having any luck connecting the XP box to my Samba PDC.
The problem is this: when I try to join my XP machine to the domain, I
get a window with the following message:

"A domain controller for the domain  could not be
contacted."

This suggests that the XP box isn't seeing the Samba server properly.
In the email below, the following is suggested:

I have attached my smb.confif anyone can help, I would greatly
appreciate it.

Thanks,

BradO



smb.conf
Description: Binary data


[Samba] Delay opening Word, Excel files

2003-07-02 Thread Brad Dokken
Hello,

I am running samba 2.2.7a on Red Hat 9. The clients are running Win2k with
SP3 and Office XP with SP2. The Samba server authenticates with a WinNT 4
domain controller. 

When the users open a Word or Excel document there is a 30sec delay before
the file opens. From info gleaned from searches on this subject I have tried
turning oplocks off altogether, which resulted in Word and Excel crashing
whenever I tried to open a file. I also tried setting oplock break wait time
= 10 which had no effect.

Thanks in advance for any help you could give me!

In the smbd log I see the following:

[2003/06/29 04:23:01, 0] smbd/oplock_linux.c:linux_init_kernel_oplocks(287)
  Failed to setup RT_SIGNAL_LEASE handler

and occasionally:

[2003/07/01 04:02:03, 0] param/loadparm.c:map_parameter(2077)
  Unknown parameter encountered: "revalidate"
[2003/07/01 04:02:03, 0] param/loadparm.c:lp_do_parameter(2752)
  Ignoring unknown parameter "revalidate"

Here is my smb.conf file:

[global]
log file = /var/log/samba/%m.log
load printers = yes
smb passwd file = /etc/samba/smbpasswd
passwd chat = *New*password* %n\n *Retype*new*password* %n\n
*passwd:*all*authentication*tokens*updated*successfully*
obey pam restrictions = yes
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
wins server = 172.16.3.2
encrypt passwords = yes
passwd program = /usr/bin/passwd %u
dns proxy = no 
netbios name = kings
server string = Samba Server
printing = cups
password server = 172.16.3.6
unix password sync = yes
workgroup = SACRAMENTO
os level = 20
printcap name = /etc/printcap
security = domain
preferred master = no
pam password change = yes



[homes]
   comment = Home Directories
   browseable = no
   writable = yes
   valid users = %S
   create mode = 0664
   directory mode = 0775

# If you want users samba doesn't recognize to be mapped to a guest user
; map to guest = bad user


# Un-comment the following and create the netlogon directory for Domain
Logons
; [netlogon]
;   comment = Network Logon Service
;   path = /usr/local/samba/lib/netlogon
;   guest ok = yes
;   writable = no
;   share modes = no


# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
;[Profiles]
;path = /usr/local/samba/profiles
;browseable = no
;guest ok = yes


# NOTE: If you have a BSD-style print system there is no need to 
# specifically define each individual printer
[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
# Set public = yes to allow user 'guest account' to print
   guest ok = no
   writable = no
   printable = yes

[projects]
writeable = yes
create mode = 770
user = @deusers
path = /srv/projects
directory mode = 770


[public]
delete readonly = yes
writeable = yes
path = /srv/public
only user = yes
force directory mode = 770
force group = deusers
force create mode = 770
create mode = 770
user = @deusers
directory mode = 770


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


[Samba] Samba 3 and net user

2003-01-22 Thread Henry, Brad ERM
Hello, I have a couple of questions regarding the net user command in Samba
3. The man page states 

USER ADD  [password] [-F user flags] [misc. options]

but doesn't describe what the user flags or misc. options are. Basically, I
want to be able to set a users home directory drive letter and path by
creating or modifying the users account from the shell.

I know that you can't do what I need with the DOS "net user" command, so I
was hoping that the Samba version of the command could provide the
functionality I need :)

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



[Samba] quick question re: smb.conf parameters

2003-02-06 Thread Henry, Brad ERM
Ok, I know this is a stupid question but im having problems with some shares
and so I have to ask:

Are share parameters specified within the [global] section used as defaults
for my other shares, or are they ignored?

For example, if I set
veto oplock files = /*.DBM/*.dbm/ 
within the [global] section, will that trickle down to my shares if I don't
have "veto oplock files" explicitly set within them?

If so, are there any share level parameters where this isn't the case?

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



[Samba] compilation problems with 2.2.7a on OpenBSD 3.2 using --with-ldapsam

2003-02-28 Thread Henry, Brad ERM

Hello, last weekend I downloaded installed the openldap port for openbsd
3.2, which installed ldap.h and lber.h (among others) into
/usr/local/include as well as liblber.a and libldap.a into /usr/local/lib. 

Following that, I downloaded samba-latest, ran 

./configure --with-ldapsam --libdir=/usr/local/lib
--includedir=/usr/local/include
which came back with no problems to speak of.

So I ran make, and it came up with

Compiling passdb/secrets.c
passdb/secrets.c: In function `secrets_named_mutex':
passdb/secrets.c:287: warning: passing arg 2 of `tdb_lock_bystring' discards
qualifiers from pointer target type
Compiling passdb/pass_check.c
Compiling passdb/smbpassfile.c
Compiling passdb/machine_sid.c
Compiling passdb/pdb_smbpasswd.c
Compiling passdb/pampass.c
Compiling passdb/pdb_tdb.c
Compiling passdb/pdb_ldap.c
passdb/pdb_ldap.c:48: lber.h: No such file or directory
passdb/pdb_ldap.c:49: ldap.h: No such file or directory
*** Error code 1


So does anyone know what I should try next to be able to compile samba
--with-ldapsam on openbsd 3.2?
I have attached the full configure and make output if that helps anyone...

Thanks,
Brad

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


[Samba] Group resolution with Samba 2.2.5

2002-09-26 Thread Henry, Brad ERM

> Hello, I am using Samba 2.2.5 and OpenLDAP on RedHat 7.2 to provide
> Windows clients with distributed file and print functionality. We are
> using the standard Samba 2.2.5 RPM available from RedHat.
> 
> Everything is working perfectly, except for a problem with our Samba and
> groups. We are performing pass-through password authentication to our
> existing NT4 domain, so all we store in the LDAP tree is our posixUser and
> posixGroup entry data for NSS resolution, and PAM authentication to Linux.
> We believe that we have the  NSS operations setup properly, as user and
> group resolution work fine at the console, however group membership
> resolution does not seem to be occuring through samba for authenticated
> users at windows clients.
> 
> Can anyone else confirm or deny this behavior? Is there anything that I
> could provide to shed more light on the situation? Locally created groups
> (within the /etc/groups file) work fine in Samba and at the console, and
> NSS-LDAP resolved groups work fine at the console, but NSS-LDAP resolved
> groups do not work in Samba.
> 
> Thanks for any help you can offer,
> Brad
> 
> 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] Binary filenames in smbstatus output? (Samba 2.2.5)

2003-07-15 Thread Henry, Brad ERM
Have any of you seen behavior like this before? We are currently having
problems with our Samba server coming up telling a lot of our users that
Word files "are locked for editing." and will only let users open them Read
Only. 

We are running Samba 2.2.5 from standard RedHat 7.2 RPMS, on i386 RedHat
7.2, Kernel 2.4.9-34smp. Im putting this to the list as a symptom to see if
anyone has ever seen similar behavior. 

Please let me know if you have any suggestions. The server is in production
and so we are a little apprehensive of changing versions unless we can be at
least fairly certain the change will be painless and going to fix our
problem.

Partial output of smbstatus' locked files section shows:

13848 DENY_NONE 0x20189 RDONLY NONE z~ Tue Jul 15 10:17:26 2003
13848 DENY_WRITE 0x20189 RDONLY NONE z~ Tue Jul 15 10:17:26 2003
11705 DENY_NONE 0x20189 RDONLY NONE z~ Tue Jul 15 09:59:57 2003
11705 DENY_WRITE 0x20189 RDONLY NONE z~ Tue Jul 15 09:59:57 2003
29695 DENY_NONE 0x20189 RDONLY NONE z~ Tue Jul 15 08:11:32 2003
29695 DENY_WRITE 0x20189 RDONLY NONE z~ Tue Jul 15 08:11:32 2003
16678 DENY_NONE 0x1 RDONLY EXCLUSIVE+BATCH
/data/ep/wq/windat/windat/CONFIGUR.DAT Tue Jul 15 10:36:44 2003

The file named z~ worries me.there are also entries like %, ~ and 8.
Being that it is not showing path information it seems odd, can anyone
explain this behavior? I can produce my smb.conf and high level debug output
offlist if anyone thinks they can help.

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


[Samba] FW: Problems trying to test Samba 3.0.0beta3

2003-07-25 Thread Garrott, Brad M.
I think I may have sent this to the wrong list originally.  Can
anyone provide some assistance?

I have complied the version Samba 3.0.0beta3 on an HP-UX 11.11
machine.  It compiles without any problems, but when I go to run any
commands out of /usr/local/samba/bin such as "net join" it gives me the
following error message:
  Error loading module '/usr/local/samba/lib/charset/roman8.sl': Can't open
shared library: /usr/local/samba/lib/charset/roman8.sl
[2003/07/25 13:09:50, 0] lib/module.c:(40)
  Error loading module '/usr/local/samba/lib/charset/CP850.sl': Can't open
shared library: /usr/local/samba/lib/charset/CP850.sl
[2003/07/25 13:09:50, 0] lib/charcnv.c:(133)
coredump

Is there a GNU tool that I need to install before compiling Samba.

Thanks,
_
Brad M. Garrott
Information Systems Programmer/Analyst
Global Information Services
The Timken Corporation
_
E-Mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
Ph/Fax: (330) 471-4750/458-6751

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