Find the answer to your Linux question:
Results 1 to 6 of 6
I installed samba between centos 5.4 and windws 7 x64. But at windows 7 I can read but cannot write samba drive. [global] hosts deny = ALL hosts allow = ...
  1. #1
    Just Joined!
    Join Date
    Sep 2009
    Posts
    8

    samba - read but cannot write at win 7

    I installed samba between centos 5.4 and windws 7 x64.
    But at windows 7 I can read but cannot write samba drive.


    [global]
    hosts deny = ALL
    hosts allow = 192.168.0.0/24
    interfaces = eth0
    ; bind interfaces only = Yes

    workgroup = WINDSTORY
    server string = Samba Server Version %v
    netbios name = maestro_vb
    security = share
    passdb backend = tdbsam
    client ntlmv2 auth = yes
    ; ntlm auth = yes
    ; lanman auth = yes
    cups options = raw
    username map = /etc/samba/smbusers
    ;encrypt passwords = No
    ; client plaintext auth = yes

    [homes]
    comment = Home Directories
    browseable = no
    writable = yes

    [printers]
    comment = All Printers
    path = /var/spool/samba
    browseable = no
    printable = yes

    [html]
    path = /var/www/html
    comment = html-vbox
    admin users = maestro
    writeable = yes
    available = yes
    browseable = yes
    ; printable = no
    locking = no
    strict locking = no
    guest ok = yes
    Any comment would be appreciated.

  2. #2
    Linux Newbie JosePF's Avatar
    Join Date
    Jun 2010
    Posts
    225
    Hi,
    Are you give correct permisions to folders according to user that access to it?

  3. #3
    Just Joined!
    Join Date
    Sep 2009
    Posts
    8
    Quote Originally Posted by JosePF View Post
    Hi,
    Are you give correct permisions to folders according to user that access to it?
    JosePF/ Thanks!

    I'll chek it.

  4. #4
    Just Joined!
    Join Date
    Sep 2009
    Posts
    8
    JosePF/

    I made writabel /var/www/html with these commands.

    chown -R maestro:team /var/www/html
    chmod -R 707 /var/www/html
    But I could not write any files to directory at windows.

  5. #5
    Linux Newbie JosePF's Avatar
    Join Date
    Jun 2010
    Posts
    225
    Have you executed testparm to ckeck smb.conf?

    Regards

  6. #6
    Just Joined!
    Join Date
    Jun 2010
    Posts
    25

    Thumbs up Try this it might work

    Code:
    [global]
    hosts deny = ALL
    hosts allow = 192.168.0.0/24 #------------- change this
    interfaces = eth0
    ; bind interfaces only = Yes
    first change
    Code:
    hosts allow = 192.168.0.0/24
    to
    Code:
    hosts allow = 192.168.0.
    coz here you have to provide host notation which ends with a dot and you are giving n/w notation

    then give acl permission to user "maestro"
    Code:
    setfacl -m u:maestro:rwx /var/www/html

    Add this line to html share conf
    Code:
    hosts allow = 192.168.0.
    and also replace
    Code:
    admin users = mastro
    with
    Code:
    valid users = mastro
    Code:
    [html]
    path = /var/www/html
    comment = html-vbox
    admin users = maestro
    writeable = yes
    available = yes
    browseable = yes
    ; printable = no
    locking = no
    strict locking = no
    guest ok = yes


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...