[Samba] implicit locking?

2009-01-23 Thread LÉVAI Dániel

Hi!

Is it possible to introduce an implicit server-side file locking 
mechanism in samba(3.2.5), so if one opens a shared file for writing, 
then a new user won't be able to open it for writing, but only read-only.

Currently the following options are in the config file:
# testparm -v |fgrep -i lock
[...]
kernel oplocks = Yes
lock spin time = 200
oplock break wait time = 0
lock directory =
block size = 1024
veto oplock files =
blocking locks = Yes
fake oplocks = No
locking = Yes
oplocks = Yes
level2 oplocks = Yes
oplock contention limit = 2
posix locking = Yes
strict locking = Auto


Thanks!

Daniel

--
LEVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba and the WinXP WebClient

2008-12-04 Thread LÉVAI Dániel

Hi!

We've had horrible performance when opening files from out Samba server 
with OpenOffice.org on some of our XP machines (not on all, I might 
add). Also, the general file transfers (copy to/from server) were fast 
and adequate.
Then I had stumbled upon the Samba HOWTO which mentioned turning off 
this WebClient service on WinXP.
I'm just rather curious, why does this WebClient slows down the opening 
of files with OO.org? Anyone care to elaborate?


Thanks in advance!

Daniel

--
LEVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] samba+cups failure - no printers in the share list

2008-10-14 Thread LÉVAI Dániel

Martin Zielinski wrote:

Hi!

Self compiled Samba?
Does ldd smbd has a link to libcups?
If you have a smbd that is linked to libcups and cups is running, it 
will work!


Only reason why it wouldn't could be access rights in your cups 
configuration.


After you verified, that libcups is used, it might be a good idea to 
increase the log level of samba and cups and examine the logfiles. They 
might contain the information you need.


Bye,

Martin


Thanks Martin for the tips.
While checking cups' logs, it showed me the infamous Unsupported 
character set error, and after reading the bug reports regarding this, 
I've converted the server to use utf8. Now samba can get the printers 
from cups.


Daniel




LÉVAI Dániel schrieb:

LÉVAI Dániel wrote:

Hi!

It seems my samba and cups won't communicate with each other. I've 
configured samba to load the printers from cups:

load printers = yes
printing = cups
printcap name = cups

[printers]
comment = All Printers
path = /var/spool/samba
printable = yes
public = no
read only = yes
create mode = 0700
valid users = @digiszfv
printer admin = daniell

# lpstat -t
scheduler is running
no system default destination
device for hp_lj_p2015n: socket://192.168.1.66
hp_lj_p2015n accepting requests since 2008. okt. 10., p?ek, 08.49.44 
CEST
printer hp_lj_p2015n is idle.  enabled since 2008. okt. 10., p?ek, 
08.49.44 CEST


Despite all this, samba fails to advertise the printer:
# smbclient -U daniell -L FILESERVER
Enter daniell's password:
Domain=[DIGISZFV] OS=[Unix] Server=[Samba 3.2.3]

Sharename   Type  Comment
-     ---
print$  Disk  Printer Drivers
ugyfelszolgalat Disk  Ugyfélszolgálat
adminisztrator  Disk  Adminisztrátorok
optikus Disk  Szemészet
IPC$IPC   IPC Service (Samba (fileserver))
daniell Disk  Home Directories
Domain=[DIGISZFV] OS=[Unix] Server=[Samba 3.2.3]

What am I missing? Any help would be appreciated.

What this post is missing is some more info I think.
Samba is 3.2.3
Cups is 1.3.8
OS is a Debian testing
Kernel is linux kernel 2.6.24

The printers doesn't show on Linux nor on Win.
On the Cups www admin page, I can print out a test page, so the 
printer is usable.
The problem is with the link between cups and samba. Can't seem to 
figure or find out what is it, though.


Thanks in advance!
Daniel



--
LEVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] samba+cups failure - no printers in the share list

2008-10-13 Thread LÉVAI Dániel

Hi!

It seems my samba and cups won't communicate with each other. I've 
configured samba to load the printers from cups:

load printers = yes
printing = cups
printcap name = cups

[printers]
comment = All Printers
path = /var/spool/samba
printable = yes
public = no
read only = yes
create mode = 0700
valid users = @digiszfv
printer admin = daniell

# lpstat -t
scheduler is running
no system default destination
device for hp_lj_p2015n: socket://192.168.1.66
hp_lj_p2015n accepting requests since 2008. okt. 10., p?ek, 08.49.44 CEST
printer hp_lj_p2015n is idle.  enabled since 2008. okt. 10., p?ek, 
08.49.44 CEST


Despite all this, samba fails to advertise the printer:
# smbclient -U daniell -L FILESERVER
Enter daniell's password:
Domain=[DIGISZFV] OS=[Unix] Server=[Samba 3.2.3]

Sharename   Type  Comment
-     ---
print$  Disk  Printer Drivers
ugyfelszolgalat Disk  Ugyfélszolgálat
adminisztrator  Disk  Adminisztrátorok
optikus Disk  Szemészet
IPC$IPC   IPC Service (Samba (fileserver))
daniell Disk  Home Directories
Domain=[DIGISZFV] OS=[Unix] Server=[Samba 3.2.3]

What am I missing? Any help would be appreciated.

Thanks!

Daniel

--
LEVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] samba+cups failure - no printers in the share list

2008-10-13 Thread LÉVAI Dániel

LÉVAI Dániel wrote:

Hi!

It seems my samba and cups won't communicate with each other. I've 
configured samba to load the printers from cups:

load printers = yes
printing = cups
printcap name = cups

[printers]
comment = All Printers
path = /var/spool/samba
printable = yes
public = no
read only = yes
create mode = 0700
valid users = @digiszfv
printer admin = daniell

# lpstat -t
scheduler is running
no system default destination
device for hp_lj_p2015n: socket://192.168.1.66
hp_lj_p2015n accepting requests since 2008. okt. 10., p?ek, 08.49.44 CEST
printer hp_lj_p2015n is idle.  enabled since 2008. okt. 10., p?ek, 
08.49.44 CEST


Despite all this, samba fails to advertise the printer:
# smbclient -U daniell -L FILESERVER
Enter daniell's password:
Domain=[DIGISZFV] OS=[Unix] Server=[Samba 3.2.3]

Sharename   Type  Comment
-     ---
print$  Disk  Printer Drivers
ugyfelszolgalat Disk  Ugyfélszolgálat
adminisztrator  Disk  Adminisztrátorok
optikus Disk  Szemészet
IPC$IPC   IPC Service (Samba (fileserver))
daniell Disk  Home Directories
Domain=[DIGISZFV] OS=[Unix] Server=[Samba 3.2.3]

What am I missing? Any help would be appreciated.

What this post is missing is some more info I think.
Samba is 3.2.3
Cups is 1.3.8
OS is a Debian testing
Kernel is linux kernel 2.6.24

The printers doesn't show on Linux nor on Win.
On the Cups www admin page, I can print out a test page, so the printer 
is usable.
The problem is with the link between cups and samba. Can't seem to 
figure or find out what is it, though.


Thanks in advance!
Daniel

--
LEVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba