Autor Thema: Samba, User lässt sich nicht anlegen  (Gelesen 2572 mal)

0 Mitglieder und 1 Gast betrachten dieses Thema.

Offline Dippes

  • VIP-Cubie
  • *****
  • Beiträge: 1277
  • Öfters mal da
Samba, User lässt sich nicht anlegen
« am: 10 August, 2011, 13:28 »
ich versuche verzweifelt einen user anzulegen

root@VDR:~# smbpasswd -a michelle
New SMB password:
Retype new SMB password:

aber leider wird nix angelegt.

normal ist in dem sambaverzeichnis eine datei mit den angelegten usern vorhanden.bei mir nicht.

samba wiki kann mir leider auch nicht weiterhelfen.

gruß

dippes
Mein Rechner

Win7 Ultimate,GeForce GT g40,Gigabyte GA-EP43-UD3L ,CPU Typ   DualCore,Intel Core 2 Duo E6750, 2666 MHz (8 x 333),Arbeitsspeicher 4096 Mb,

Festplatten: SAMSUNG SP2004C (186 GB),SAMSUNG SP1614C (149 GB),SAMSUNG HD501LJ (465 GB)

Soundkarte: PCIe Sound Blaster X-Fi Xtreme Audio


Mein VDR

Wohnzimmer VDR: Testing yavdr 0.5.0 | Origen 16V | Cine S2 v6.2 + DuoFlexS2| ASRock H81M-HDS | 4 Gig Ram | Intel Celeron G1820 | GT 630 Zotac 1 Gig DD3 | X 10 Medion + Harmony 300 | SanDisk SDSSDP-064G-G25 64GB | Harddisk 3,0 TB | Panasonic TX-P46S20E
Schlafzimmer VDR: yavdr 0.5.0 |HTPC-DE02 |Nova HD S2 | Asus F2A55-M | 4 Gig Ram | AMD FM2 A6-5400K (3 ghz) | GT 630 Zotac 1 Gig DD3 | X 10 Medion | Intel SSD 320 40 GB | Harddisk 3,0 TB | Philips 4000 serie 26"

Pogoplug Pro

1 x Sundtek SkyTV IV für Netzwerk Streaming

Offline mtron

  • Server-Admin
  • *
  • Beiträge: 1519
    • some debs
Re: Samba, User lässt sich nicht anlegen
« Antwort #1 am: 10 August, 2011, 15:09 »
ahoi.

Hast du windows Clients im Netzwerk? Ansonsten nimm NFS => Viel preformanter als sambe

Wenns denn doch samba sein muss halte dich an dieses howto http://www.debianhelp.co.uk/samba.htm 

Poste bitte die sambe config und die ausgabe von "testparm".

EDIT: Ich habe in meiner persönlichen Sammlung noch was aufgestöbert. Vielleicht hilfts ;)

smb.conf explained

    netbios name - Name by which the Samba server is known on the network. Same as the Windows NT Computer Name. If you don’t specify it, it will default to the server’s hostname.

    workgroup - This parameter tells samba which Window NT Domain or Workgroup it will join. It is equivalent to the Windows NT Domain or Workgroup name.

    server string - The description string of the Samba server. It is equivalent to the Windows NT Description field.

    security - four possible values: share, user, server, domain

    Share - clients need to supply only the password for the resource. This mode of security is the default for the Windows 95 file/print server. It is not recommended for use in UNIX environments, because it violates the UNIX security scheme.

    User - the user/password validation is done on the server which is offering the resource. This mode is most widely used.

    Server - user/password validation is done on the specified authentication server. This server can be a Windows NT server or another Samba server.

    Domain - this security level is basically the same as server security, with the exception that the Samba server becomes a member of a Windows NT domain. In this case the Samba server can also participate in such things as trust relationships

    encrypt passwords - If set to yes, Samba uses the encrypted password protocol. It is used in Windows NT (starting with Service Pack 3) and Windows 95/98.

    smb passwd file - This tells Samba where encrypted passwords are saved. By default, it will use /etc/smbpasswd.

    name resolve order - This parameter specifies how the Samba server resolves NetBIOS names into IP addresses. The preferred value is wins lmhosts bcast.

WINS support

    Only one of the parameters (wins support or wins server) can be set at the same time. If you specify the IP address of WINS server then, wins support must be set to “no”.

    wins server - With this parameter, you tell Samba which WINS server to use.

    wins support - This option tells Samba to act as a WINS server

Share options

    admin users - Specify the users who have administrative privileges for the share. When they access the share, they perform all operations as root.

    printable - This parameter specifies if the share is a print share. If the share is printable, then it is also writable by default

    write list - Specifies the list of people who have write access to the share. If the name begins with @ it means a group name.

    writable -This parameter specifies if the share is writable. (yes/no)

    read list-List of people who have read access to the share. If the name begins with @ it means a group name.

    read only -If this is set to yes, the share is read only.

    valid users -This parameter specifies which users can access the share.

    create mask -This is used for file creation to mask against UNIX mask calculated from the DOS mode requested. Default: 0744

    directory mask -This is used for directory creation to mask against UNIX mask calculated from the DOS mode requested. Default: 0755

Homes

    Special share section called [homes] will affect all home folders. You don't need to create one seperate for each user. When client requests a connection to a file share, existing file shares are scanned. If a match is found, that share is used. If no match is found, the requested share is treated as a username and validated by security. If the name exists and the password is correct, a share with that name is created by cloning the [homes] section.

    Home Folder Structure in smb.conf

[homes]
comment = Home Directories
path = %H
valid users = %S
browseable = no
writable = yes
create mode = 0700
directory mode = 0700

    %H - Represents the home directory of the user.
    %S - Represents the name of the current service which, in the case of home share, is equal to the username.

Add Shared Folder to Samba

    Here is a sample share folder structure.

[share]
  path = /path/to/data
  comment = Data Directory on servername
  read only= yes
  valid users = @users
  write list = manager
    This shares the data in a directory as a share. You can access this share by \\servername\share. Only valid users who are part of users group are permited to read this data. The user named manager is allowed to write.

Add Writable share Folder

    Following previous procedure. Add this to the smb.conf

[everybody]
comment = Everybody files
path = /path/to/folder
browseable = yes
printable = no
writable = yes
write list = @users
Signatur
PC: lshw | Sats: 19.2° & 13°Ost (DiSEqC, 80cmØ Blech) | DVB-Soft: vdr 2.1.7 mit softhddevice via va-api
- Hauppauge Nova-T USB 2.0 Stick mit DiBcom DiB7700P Frontend, MT2060 tuner, Firmware
- TerraTec Cinergy S2 PCI HD mit STB0899 demodulator und Mantis VP 1041 PCI bridge
- TerraTec Cinergy S2 USB mit Montage DS3000 demodulator und IR-receiver,  Firmware
[close]

Offline Dippes

  • VIP-Cubie
  • *****
  • Beiträge: 1277
  • Öfters mal da
Re: Samba, User lässt sich nicht anlegen
« Antwort #2 am: 10 August, 2011, 19:51 »
hallo mtron

hier die ausgabe von testparm

root@VDR:~# testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
Processing section "[video.00]"
Processing section "[Videofilme]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

hier die smb.conf

[global]
        workgroup = NETZWERKSPEZIAL
        netbios name = VDR
        server string = Samba-Server
        Default: unix charset = UTF8
        Example: unix charset = ASCII
        interfaces = eth0
        map to guest = bad user
        encrypt passwords = yes

[video.00]
        case sensitive = no
        comment = VDR Aufnahmeverzeichnis
        path = video/video.00
        guest ok = yes
        writeable = yes
        browseable = yes
        create mode = 0664
        directory mode = 0775
        force user = vdr
        force group = vdr
        follow symlinks = yes
        wide links = yes

[Videofilme]
        case sensitive = no
        comment = Videofilme
        path = video/video.00/Videofilme
        guest ok = yes
        writeable = yes
        browseable = yes
        create mode = 0664
        directory mode = 0775
        force user = vdr
        force group = vdr
        follow symlinks = yes
        wide links = yes

und ja, ich brauche den zugriff über windows  ;)

die maschine bekommt eine bekannte von mir....
Mein Rechner

Win7 Ultimate,GeForce GT g40,Gigabyte GA-EP43-UD3L ,CPU Typ   DualCore,Intel Core 2 Duo E6750, 2666 MHz (8 x 333),Arbeitsspeicher 4096 Mb,

Festplatten: SAMSUNG SP2004C (186 GB),SAMSUNG SP1614C (149 GB),SAMSUNG HD501LJ (465 GB)

Soundkarte: PCIe Sound Blaster X-Fi Xtreme Audio


Mein VDR

Wohnzimmer VDR: Testing yavdr 0.5.0 | Origen 16V | Cine S2 v6.2 + DuoFlexS2| ASRock H81M-HDS | 4 Gig Ram | Intel Celeron G1820 | GT 630 Zotac 1 Gig DD3 | X 10 Medion + Harmony 300 | SanDisk SDSSDP-064G-G25 64GB | Harddisk 3,0 TB | Panasonic TX-P46S20E
Schlafzimmer VDR: yavdr 0.5.0 |HTPC-DE02 |Nova HD S2 | Asus F2A55-M | 4 Gig Ram | AMD FM2 A6-5400K (3 ghz) | GT 630 Zotac 1 Gig DD3 | X 10 Medion | Intel SSD 320 40 GB | Harddisk 3,0 TB | Philips 4000 serie 26"

Pogoplug Pro

1 x Sundtek SkyTV IV für Netzwerk Streaming