PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : mit WXP über Samba auf Webserver zugreifen



wotuzu17
17.08.06, 19:16
Hallo Linux- Gurus!

Ich hab schon ein paar Jahre nichts mehr mit Linux unternommen. Jetzt möchte ich auf die schnelle eine Web- Applikation mit php schreiben.

Installiert hab ich Suse 10.1 auf einem ordentlichen Rechner. Programmieren möchte ich aber auf meinem XP Laptop.

Apache läuft bereits mehr oder weniger mit Standardsetup. Die DOC Root ist /svr/www/htdocs/

Auf dem XP Rechner gibt's einen User andreas mit passwort. Mit dem User möchte ich auf die Doc root zugreifen. Optimal wäre es, wenn die files gleich mit den gewünschten owner- und permissions im Verzeichnis landen.

Meine smb.conf schaut so aus:

# 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]
workgroup = TEC
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = No
security = user
netbios name = voellen
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/
[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes
[web]
comment = WEB
path = /srv/www/htdocs/
read only = No


danke für die bemühungen

RichieX
18.08.06, 08:21
[web]
comment = WEB
path = /srv/www/htdocs/
read only = No

solltest du so erweitern:


force user = apache #oder http[d] je nach distri
force group = apcahe #dito
directory mask = 0644
create mask = 0644

alles andere sieht gut aus und funktioniert bestimmt auch schon.

wotuzu17
18.08.06, 09:25
danke, jetzt klappt es bei mir. meine freigabe im smb.conf schaut nun so aus:



[web]
comment = WEB
path = /srv/www/htdocs/
read only = No
force user = wwwrun
force group = www
directory mask = 0754
create mask = 0644


Dirctory mask 644 funzt nicht, weil da kann ich als owner nicht ins unterverzeichnis wechseln.