You are not logged in.

Anzeigen

eXpli

Beginner

  • "eXpli" started this thread

Posts: 13

wcf.user.option.userOption65: Debian

  • Send private message

1

Friday, February 5th 2010, 1:31pm

Samba: WinXP kann nicht schreiben...

Hallo Leute,

ich hab schon stundenlang google't, diverse Foren durchstöbert und irre viel Konfigurationsvorschläge durchgearbeitet. Leider hat nichts zum Erfolg geführt.
Ich habe eine NSLU2 mit Debian (Lenny) an laufen. Jetzt möchte ich eine Datenplatte als Sambafreigabe im Netz betreiben. Doch ich scheitere an der Rechtevergabe, soll heißen, ich kann keine(n) Ordner oder Datei in die Freigabe von meinem WinXP-Rechner anlegen geschweige denn hineinkopieren. Immer kommt die Fehlermeldung "Der Ordner konnte nicht erstellt werden. Zugriff verweigert."

Folgendermaßen bin ich vorgegangen:


Source code

1
2
3
4
5
6
7
8
9
10
11
12
NSLU2:/# groupadd smbuser
NSLU2:/unterlagen# useradd -g smbuser s-manfred
NSLU2:/unterlagen# passwd s-manfred
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
NSLU2:/unterlagen# smbpasswd -a s-manfred
New SMB password:
Retype new SMB password:
NSLU2:/unterlagen# smbpasswd -e s-manfred
Enabled user s-manfred.
NSLU2:/unterlagen#


Mein smb.conf sieht so aus:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Date: 2009/12/01 21:07:34

[global]
        workgroup = MAKO
        server string = %h server
        obey pam restrictions = Yes
        passdb backend = tdbsam
        pam password change = Yes
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
        unix password sync = Yes
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 1000
        dns proxy = No
        panic action = /usr/share/samba/panic-action %d
        include = /etc/samba/dhcp.conf

[homes]
        comment = Home Directories
        valid users = %S
        create mask = 0700
        directory mask = 0700
        browseable = No

[printers]
        comment = All Printers
        path = /var/spool/samba
        create mask = 0700
        printable = Yes
        browseable = No

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/printers


[unterlagen]
comment = unterlagen
path = /unterlagen
writeable = yes
public = no
valid users = s-manfred
create = 0770
directory mode = 0770


Testparam sagt:


Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
NSLU2:/etc/samba# testparm
Load smb config files from /etc/samba/smb.conf
Can't find include file /etc/samba/dhcp.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[print$]"
Processing section "[unterlagen]"
Unknown parameter encountered: "create"
Ignoring unknown parameter "create"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
        workgroup = MAKO
        server string = %h server
        obey pam restrictions = Yes
        passdb backend = tdbsam
        pam password change = Yes
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
        unix password sync = Yes
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 1000
        dns proxy = No
        panic action = /usr/share/samba/panic-action %d
        include = /etc/samba/dhcp.conf

[homes]
        comment = Home Directories
        valid users = %S
        create mask = 0700
        directory mask = 0700
        browseable = No

[printers]
        comment = All Printers
        path = /var/spool/samba
        create mask = 0700
        printable = Yes
        browseable = No

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/printers

[unterlagen]
        comment = unterlagen
        path = /unterlagen
        valid users = s-manfred
        read only = No
        directory mask = 0770
NSLU2:/etc/samba#


Ich bin mit meinem Latein am Ende...

Hier noch die Rechte von der Freigabe:

Source code

1
drwxr-xr-x  3 root root 32768 Jan  1  1970 unterlagen


Wenn die Informationen nicht reichen kann ich euch noch mit weiteren versorgen.

So long,
eXpli

Anzeigen

Jareth

Beginner

Posts: 10

wcf.user.option.userOption65: Debian

  • Send private message

2

Friday, February 5th 2010, 2:50pm

smbuser angelegt?
Notebook:Samsung R700 Netbook:NC10 black NSLU2:2.6.26-2-ixp4xx armv5tel - 4GB Stick Lenny USB:Aktive HUB - 1TB - Printer VDSL:down50/up10

Anzeigen

eXpli

Beginner

  • "eXpli" started this thread

Posts: 13

wcf.user.option.userOption65: Debian

  • Send private message

3

Friday, February 5th 2010, 2:54pm

Source code

1
2
3
4
5
NSLU2:/unterlagen# smbpasswd -a s-manfred
New SMB password:
Retype new SMB password:
NSLU2:/unterlagen# smbpasswd -e s-manfred
Enabled user s-manfred.



Denke ja :)

Posts: 2,164

wcf.user.option.userOption68: 64X2/8GB/Ubuntu10.04LTS

wcf.user.option.userOption65: anderes

Location: Berlin

Occupation: TK/IT Consulting and Engineering

  • Send private message

4

Friday, February 5th 2010, 3:03pm

Moin,

wäre es hilfreich, dem User s-manfred zu erlauben, in das Verzeichnis unterlagen schreiben zu dürfen?

bye
JrB
"Supporting joe users worldwide" <- that's our motto


eXpli

Beginner

  • "eXpli" started this thread

Posts: 13

wcf.user.option.userOption65: Debian

  • Send private message

5

Friday, February 5th 2010, 3:17pm

Habe folgendes versucht:

Source code

1
2
NSLU2:/# chown s-manfred /unterlagen
chown: changing ownership of `/unterlagen': Operation not permitted


Ich haben den Ordner "unterlagen" im Verzeichnis "/" liegen. Könnte es damit was zutun haben? Merkwürdigerweise kann ich ja nicht mal den Owner wechseln... Alles bisschen sehr unzufriedenstellend :(.

This post has been edited 1 times, last edit by "eXpli" (Feb 5th 2010, 3:32pm)


sindbad

Trainee

Posts: 64

wcf.user.option.userOption68: debian lenny@NSLU und sheeva

wcf.user.option.userOption65: Debian

Location: zwischen Berlin und Leipzig

  • Send private message

6

Monday, February 8th 2010, 9:25am

Als root den Ordner /unterlagen auf s-manfred übertragen! "Operation not permitted" sagts ...

Sindbad

eXpli

Beginner

  • "eXpli" started this thread

Posts: 13

wcf.user.option.userOption65: Debian

  • Send private message

7

Monday, February 8th 2010, 4:57pm

Also ich versteh es nicht... Kannste mir das erklären ?

sindbad

Trainee

Posts: 64

wcf.user.option.userOption68: debian lenny@NSLU und sheeva

wcf.user.option.userOption65: Debian

Location: zwischen Berlin und Leipzig

  • Send private message

8

Tuesday, February 9th 2010, 6:13pm

Ohne caplink811 in die Parade fahren zu wollen:
du bist auf der slug als root angemeldet? Wenn nicht ->

Source code

1
su


Source code

1
2
cd /
ls -la


was steht da vor "/unterlagen"?

Source code

1
chmod 777 /unterlagen

setzt erstmal alle Rechte. Dateien in /unterlagen sind davon noch nicht betroffen. Wenn auch vorhandene Dateien von allen/s-manfred bearbeitet werden sollen, dann

Source code

1
chmod 777 /unterlagen -R


Jetzt hat jeder alle Recht in /unterlagen , ob das sinnvoll ist, kann ich nicht beurteilen.

Grüße

eXpli

Beginner

  • "eXpli" started this thread

Posts: 13

wcf.user.option.userOption65: Debian

  • Send private message

9

Monday, February 15th 2010, 5:13pm

Hehe, ja ich bin als Admin angemedet.

Ich habs gerade hinbekommen das Verzeichnis "/unterlagen" freizugeben! Wahnsin!! Habe mit chgrp die Gruppe auf smbuser geändert (s-manfred ist dort Mitglied). Hat soweit alles funktioniert.

Source code

1
drwxrwxr-x  4 root smbuser  4096 Feb 15 14:16 unterlagen

Was ich jetzt aber nicht verstehe ist, dass ich /musik;/backup;... nicht ändern kann. Es erscheint die gleiche Fehlermeldung wie ist sonst immer bei "/unterlagen" hatte ?( .


Source code

1
2
3
NSLU2:/# su
NSLU2:/# cd /
NSLU2:/# chmod 777 /musik

ergibt:

Source code

1
drwxr-xr-x  2 root root    32768 Jan  1  1970 musik


Wenn ich:

Source code

1
2
NSLU2:/# chmod 775 /others -c
mode of `/others' changed to 0775 (rwxrwxr-x)

Die Rechte werden komischerweise nicht geändert!

Source code

1
2
3
NSLU2:/# ls -ltr
total 205
drwxr-xr-x  3 root root    32768 Jan  1  1970 others

This post has been edited 1 times, last edit by "eXpli" (Feb 15th 2010, 5:37pm)


eXpli

Beginner

  • "eXpli" started this thread

Posts: 13

wcf.user.option.userOption65: Debian

  • Send private message

10

Tuesday, February 16th 2010, 8:23pm

Hallo zusammen,

ich habe ein meines erachtens merkwürdiges verhalten...

wenn ich den Ordner (mountpoint), welchen ich freigeben will mounte, kann ich danach als root keine rechte mehr ändern.
Bitte schaut euch das mal an:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
NSLU2:/var/share# ls -ltr
total 20
drwxrwxrwx 2 root root 4096 Feb  5 16:49 unterlagen
drwxr-xr-x 2 root root 4096 Feb 16 18:21 others
drwxr-xr-x 2 root root 4096 Feb 16 18:21 musik
drwxr-xr-x 2 root root 4096 Feb 16 18:21 bilder
drwxr-xr-x 2 root root 4096 Feb 16 18:21 backup
NSLU2:/var/share# chmod 777 /others
NSLU2:/var/share# ls -ltr
total 20
drwxrwxrwx 2 root root 4096 Feb  5 16:49 unterlagen
drwxr-xr-x 2 root root 4096 Feb 16 18:21 others
drwxr-xr-x 2 root root 4096 Feb 16 18:21 musik
drwxr-xr-x 2 root root 4096 Feb 16 18:21 bilder
drwxr-xr-x 2 root root 4096 Feb 16 18:21 backup
NSLU2:/var/share# chmod 777 others
NSLU2:/var/share# ls -ltr
total 20
drwxrwxrwx 2 root root 4096 Feb  5 16:49 unterlagen
drwxrwxrwx 2 root root 4096 Feb 16 18:21 others
drwxr-xr-x 2 root root 4096 Feb 16 18:21 musik
drwxr-xr-x 2 root root 4096 Feb 16 18:21 bilder
drwxr-xr-x 2 root root 4096 Feb 16 18:21 backup
NSLU2:/var/share# chmod 777 musik
NSLU2:/var/share# chmod 777 bilder
NSLU2:/var/share# chmod 777 backup
NSLU2:/var/share# ls -la
total 28
drwxrwxrwx  7 root root 4096 Feb 16 18:21 .
drwxr-xr-x 14 root root 4096 Feb  5 16:48 ..
drwxrwxrwx  2 root root 4096 Feb 16 18:21 backup
drwxrwxrwx  2 root root 4096 Feb 16 18:21 bilder
drwxrwxrwx  2 root root 4096 Feb 16 18:21 musik
drwxrwxrwx  2 root root 4096 Feb 16 18:21 others
drwxrwxrwx  2 root root 4096 Feb  5 16:49 unterlagen
NSLU2:/var/share# chgrp smbuser unterlagen
NSLU2:/var/share# ls-la
-bash: ls-la: command not found
NSLU2:/var/share# ls -la
total 28
drwxrwxrwx  7 root root    4096 Feb 16 18:21 .
drwxr-xr-x 14 root root    4096 Feb  5 16:48 ..
drwxrwxrwx  2 root root    4096 Feb 16 18:21 backup
drwxrwxrwx  2 root root    4096 Feb 16 18:21 bilder
drwxrwxrwx  2 root root    4096 Feb 16 18:21 musik
drwxrwxrwx  2 root root    4096 Feb 16 18:21 others
drwxrwxrwx  2 root smbuser 4096 Feb  5 16:49 unterlagen
NSLU2:/var/share# mount /dev/sdb9
NSLU2:/var/share# mount /dev/sdb8
NSLU2:/var/share# mount /dev/sdb7
NSLU2:/var/share# mount /dev/sdb6
NSLU2:/var/share# mount /dev/sdb5
NSLU2:/var/share# mount
/dev/sda2 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/sda1 on /boot type ext2 (rw)
/dev/sda6 on /home type ext3 (rw)
/dev/sdb9 on /var/share/others type vfat (rw)
/dev/sdb8 on /var/share/bilder type vfat (rw)
/dev/sdb7 on /var/share/backup type vfat (rw)
/dev/sdb6 on /var/share/musik type vfat (rw)
/dev/sdb5 on /var/share/unterlagen type vfat (rw)
NSLU2:/var/share# /etc/init.d/samba start
Starting Samba daemons: nmbd smbd.
NSLU2:/var/share# ls -ltr
total 160
drwxr-xr-x 4 root root 32768 Jan  1  1970 unterlagen
drwxr-xr-x 2 root root 32768 Jan  1  1970 others
drwxr-xr-x 2 root root 32768 Jan  1  1970 musik
drwxr-xr-x 2 root root 32768 Jan  1  1970 bilder
drwxr-xr-x 2 root root 32768 Jan  1  1970 backup
NSLU2:/var/share#