PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Samba Cups PDF Dateirechte



tRiBUN 1.0
20.05.06, 17:00
moin,

ich habe mir einen Netzwerkdrucker für PDF Dateien mit Samba eingerichtet. Der funktioniert soweit auch ganz gut, nur eine kleinigkeit stört mich. Die angelegten PDF Dateien kann ich zwar über meine Netzwerkfreigabe lesen jedoch muss ich sie als root löschen :(.
Das übergeordnete Verzeichnis gehört auch root, jedoch macht es keinen unterschied wem es gehört. Wahrscheinlich liegt es auch eher an meiner smb.conf, also häng ich die hier mal rein.


# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2006-05-02
[global]
#### misc ####

# lower the os level, higher the chance to get PDC
os level = 33

logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = N:

domain logons = Yes

# Domain Master specifies Samba to be the Domain Master Browser PDC. If this
# machine will be configured as a BDC (a secondary logon server), you must
# set this to 'no'; otherwise, the default behavior is recommended.
domain master = Yes
local master = Yes
preferred master = Yes

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
# include = /etc/samba/smb.conf.%m


#### browsing/identification ####

# Change this to the workgroup/NT-domain name your Samba server will part of
workgroup = TUX1

# server string is the equivalent of the NT Description field
server string = "SUSE 10.1"

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
# wins support = no

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
# wins server = w.x.y.z

# This will prevent nmbd to search for NetBIOS names through DNS.
dns proxy = no

# What naming service and in what order should we use to resolve host names
# to IP addresses
# name resolve order = lmhosts host wins bcast


#### debugging/accounting ####

# This tells Samba to use a separate log file for each machine
# that connects
logfile = /var/log/samba/%m.log

# Put a capping on the size of the log files (in kB).
max log size = 500

# automaticaly add Clients to domain without home dir
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$


#### authentication ####

# "security = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See in the samba-doc
# package for details.
security = user

map to guest = Bad User

#### printing ####

# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
load printers = yes

# CUPS printing. See also the cupsaddsmb(8) manpage in the
# cupsys-client package.
printing = cups
printcap name = cups

printcap cache time = 750
cups options = raw


#=========================== shares ===========================#

[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes

[profiles]
comment = Network Profiles Service
browsable = no
path = %H
read only = no
store dos attributes = yes
create mask = 0600
directory mask = 0700

[users]
comment = All users
browsable = no
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/

[groups]
comment = All groups
browsable = no
path = /home/groups
read only = No
inherit acls = Yes

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = yes
writable = yes
printable = yes
create mask 0777

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

[PDF-files]
comment = printed PDF files
path = /var/spool/samba
browseable = yes
guest ok = yes
read only = yes
write list = root, @ntadmin, indiana, lars

[netlogon]
comment = Network Logon Service
browsable = no
path = /var/lib/samba/netlogon
write list = root
browseable = no

Danke schon mal im voraus, für jede Hilfe.

michaxyz
20.05.06, 23:54
Hallo,

dazu habe ich zu wenig Infos.
Wer erstellt denn die pfds? Wenn es da eine Möglichkeit gibt, in den Prozess einzugreifen, kann man die Datei vielleicht einem anderen Besitzer zuordnen oder für alle schreibbar machen (kein guter Gedanke).

Mfg Michael

tRiBUN 1.0
21.05.06, 09:51
Also Besitzer ist nach dem erstellen root.
Einloggen tu ich mich überhaupt nicht auf meinem Server, dass läuft einfach über "guest ok = yes". (Der PDC ist für was anderes zuständig.)
Mir wäre es also schon recht, wenn jeder Benutzer die PDFs löschen kann (auch wenn man das normalerweise nicht macht), denn sehen und erstellen kann es ja schon jeder ;).
Den PDF Drucker habe ich wie hier (http://www.linuxforen.de/forums/showpost.php?p=1359803&postcount=4) beschrieben eingerichtet. In den angelegten skripten könnte man ja, wie du schon schreibst, vielleicht etwas ändern/hinzufügen , allerdings kenne ich mich damit nicht aus.

rkauskh
21.05.06, 10:45
Hi

Ich würde jetzt mal auf 2 Sachen tippen.

1. In deiner smb.conf steht

map to guest = Bad user

2.




[PDF-files]
comment = printed PDF files
path = /var/spool/samba
browseable = yes
guest ok = yes

**************read only = yes***************

write list = root, @ntadmin, indiana, lars

Ich würd's zuerst mal mit Punkt 2 versuchen.

tRiBUN 1.0
21.05.06, 12:03
ohh man ist das peinlich, man sollte halt nicht einfach nur bereiche kopieren und dann nicht richtig anpassen ;).

Danke noch mal für eure Hilfe