Find the answer to your Linux question:
Results 1 to 3 of 3
hi everyone I am new to samba, i created a user name dhaval in my linux server. Currently i am using fedora 10. as os. and then add the use ...
  1. #1
    Just Joined!
    Join Date
    Aug 2010
    Posts
    2

    Unhappy samba cannot access

    hi everyone I am new to samba, i created a user name dhaval in my linux server. Currently i am using fedora 10. as os. and then add the use in the samba as

    smbadd -a dhaval

    and give the password.

    also there were some users previously created like xxx.
    my smb.conf file is as follows:

    [global]

    workgroup = MYGROUP
    server string = Samba Server Version %v

    log file = /var/log/samba/log.%m
    max log size = 50

    security = user
    passdb backend = tdbsam

    domain logons = yes

    load printers = yes
    cups options = raw

    [xxx]
    comment = Shared Files
    path = /home/xxx
    writeable = yes
    browseable = yes
    guest ok = yes
    printable = no

    ;[xxx1]
    ; comment = Shared Files
    ; path = /home/xxx1
    ; writeable = yes
    ; browseable = yes
    ; guest ok = yes
    ; printable = no

    [dhaval]
    comment = Shared Files
    path = /home/dhaval
    writeable = yes
    browseable = yes
    guest ok = yes
    printable = no

    [xxx2]
    comment = Shared Files
    path = /home/xx2
    writeable = yes
    browseable = yes
    guest ok = yes
    printable = no


    [homes]
    comment = Home Directories
    browseable = yes
    writable = yes
    valid users = %S

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

    [netlogon]
    path = /home/samba/netlogon
    guest ok = Yes

    [profiles]
    path = /home/samba/profiles
    read only = No
    create mask = 0600
    directory mask = 0700
    ---------------------------------------------------------------------

    When try to login from windows i can access xxx
    but i cant access dhaval, the error message is network can't access.

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

    Thumbs up

    Code:
    [dhaval]
    comment = Shared Files
    path = /home/dhaval
    writeable = yes
    browseable = yes
    guest ok = yes
    printable = no
    first check that selinux is enabled or disabled, check it by typing this command
    Code:
    sestatus
    if ur selinux is enabled then change the context of ur samba shared directory
    Code:
    chcon -R -t samba_share_t /home/dhaval
    then assign smb passwd to user "dhaval" by typing this command
    Code:
    smbpasswd -a dhaval
    then give desired password

    it will work....... check it

  3. #3
    Just Joined!
    Join Date
    Aug 2010
    Posts
    2

    Smile access samba share

    hey samba is working, a can access all the drives. I had done following to start it,

    ->The following command will allow to access all the directories which are inside the home
    setsebool -P samba_enable_home_dirs 1

    ->The following command will export all the directories in read only mode
    setsebool -P samba_export_all_ro 1

    ->The following command will export all the directories in write mode
    setsebool -P samba_export_all_rw 1

    -> The following command will prevents samba deamons from reading/writing nfs share by default.
    setsebool -P samba_share_nfs 1

    I used all these commands to access the samba share. And it works properly.

Posting Permissions

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