FedoraForum.org - Fedora Support Forums and Community
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 18
  1. #1
    Join Date
    Nov 2010
    Posts
    256

    samba howto

    I have followed this howto but I can not browse the directory allusers.
    Does anyone have a solution?
    http://www.howtoforge.com/fedora-13-...tdbsam-backend

    Thanks

  2. #2
    Join Date
    Mar 2004
    Location
    In your closet
    Posts
    15,603

    Re: samba howto

    Firewall? SELinux?
    Glenn
    The Bassinator

  3. #3
    Join Date
    Aug 2009
    Location
    Waldorf, Maryland
    Posts
    7,346

    Re: samba howto

    Did you enable SAMBA in the SELinux controls?

    The very first line directs you to disable SELinux (IMO, not a good idea).

    You don't indicate whether there are other errors, or log entries that may
    be related.

  4. #4
    Join Date
    Nov 2010
    Posts
    256

    Re: samba howto

    I can browse my home directory.
    I put SELinux is disabled.
    Please some help required

    Thanks

  5. #5
    Join Date
    Aug 2009
    Location
    Waldorf, Maryland
    Posts
    7,346

    Re: samba howto

    Quote Originally Posted by input
    I can browse my home directory.
    I put SELinux is disabled.
    Please some help required

    Thanks
    Did you enable samba in the SELinux controls?

    If not, you need to enable the boolean "use_samba_home_dirs".

    There are a number of samba controls present, some of which
    you may need (in addition to the one above).

  6. #6
    Join Date
    Nov 2010
    Posts
    256

    Re: samba howto

    Quote Originally Posted by jpollard
    Did you enable samba in the SELinux controls?

    If not, you need to enable the boolean "use_samba_home_dirs".

    There are a number of samba controls present, some of which
    you may need (in addition to the one above).
    Yes I did exactly what is wriiten in de howto.

  7. #7
    Join Date
    Nov 2008
    Location
    Canada
    Posts
    2,719

    Re: samba howto

    Paste the output of the following commands:

    Code:
    su
    service smb restart
    service nmb restart
    
    sestatus
    
    chkconfig smb --list
    chkconfig nmb --list
    
    service smb status
    service nmb status
    
    pdbedit --list
    
    smbclient -L 127.0.0.1 -U AValidUserName

    Late Edit: Also post your smb.conf
    Last edited by beaker_; 28th December 2010 at 07:47 PM.

  8. #8
    Join Date
    Nov 2010
    Posts
    256

    Re: samba howto

    Quote Originally Posted by beaker_
    Paste the output of the following commands:

    Code:
    su
    service smb restart
    service nmb restart
    
    sestatus
    
    chkconfig smb --list
    chkconfig nmb --list
    
    service smb status
    service nmb status
    
    pdbedit --list
    
    smbclient -L 127.0.0.1 -U AValidUserName

    Late Edit: Also post your smb.conf
    [loek@localhost ~]$ su
    Wachtwoord:
    [root@localhost loek]# service smb restart
    Shutting down SMB services: [ OK ]
    Starting SMB services: [ OK ]
    [root@localhost loek]# service nmb restart
    Shutting down NMB services: [ OK ]
    Starting NMB services: [ OK ]
    [root@localhost loek]# chkconfig smb --list
    smb 0:uit 1:uit 2:aan 3:aan 4:aan 5:aan 6:uit
    [root@localhost loek]# chkconfig nmb --list
    nmb 0:uit 1:uit 2:aan 3:aan 4:aan 5:aan 6:uit
    [root@localhost loek]# service smb status
    smbd (pid 2691) is running...
    [root@localhost loek]# service nmb status
    nmbd (pid 2713) is running...
    [root@localhost loek]# pdbedit --list
    loek:500:
    [root@localhost loek]# smbclient -L 127.0.0.1 -U AValidloek
    Enter AValidloek's password:
    session setup failed: NT_STATUS_LOGON_FAILURE

    [global]
    workgroup = MYNETWORK
    netbios name = LINUX
    server string = Samba Server Version %v
    log file = /var/log/samba/log.%m
    max log size = 50
    cups options = raw
    security = user
    passdb backend = tdbsam


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


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

    [allusers]
    comment = All Users
    path = /home/shares/allusers
    valid users = @users
    force group = users
    read only = No
    create mask = 0660
    directory mask = 0771

  9. #9
    Join Date
    Nov 2008
    Location
    Canada
    Posts
    2,719

    Re: samba howto

    I don't like
    [root@localhost loek]# pdbedit --list
    loek:500:
    [root@localhost loek]# smbclient -L 127.0.0.1 -U AValidloek
    Enter AValidloek's password:
    session setup failed: NT_STATUS_LOGON_FAILURE


    Add the following in your global section of your smb.conf. Yes I know tdbsam is default, I just want to be sure.
    Code:
    security = user
    passdb backend = tdbsam
    At the terminal:
    su
    yum install system-config-samba
    system-config-samba
    Yeah it's abit childish but will use tdbasm correctly. Add your user, give the a windows name and a password.

    Now restart samba and paste the output of both smbclient and pdbedit again:
    Code:
    service smb restart
    service nmb restart
    pdbedit --list
    smbclient -L 127.0.0.1 -U AValidloek  <<----Is this correct?  OR should it someone else?

    Late edit: opps, you already had it in your global section. Do try adding a use through system-config-samba and pasting the output of smbclient & pdbedit.
    Last edited by beaker_; 28th December 2010 at 08:27 PM.

  10. #10
    Join Date
    Nov 2010
    Posts
    256

    Re: samba howto

    Quote Originally Posted by beaker_
    I don't like
    [/COLOR]

    Add the following in your global section of your smb.conf. Yes I know tdbsam is default, I just want to be sure.
    Code:
    security = user
    passdb backend = tdbsam
    At the terminal:

    Yeah it's abit childish but will use tdbasm correctly. Add your user, give the a windows name and a password.

    Now restart samba and paste the output of both smbclient and pdbedit again:
    Code:
    service smb restart
    service nmb restart
    pdbedit --list
    smbclient -L 127.0.0.1 -U AValidloek  <<----Is this correct?  OR should it someone else?

    Late edit: opps, you already had it in your global section. Do try adding a use through system-config-samba and pasting the output of smbclient & pdbedit.

    [root@localhost ~]# service smb restart
    Shutting down SMB services: [ OK ]
    Starting SMB services: [ OK ]
    [root@localhost ~]# service nmb restart
    Shutting down NMB services: [ OK ]
    Starting NMB services: [ OK ]
    [root@localhost ~]# pdbedit --list
    loek:500:
    [root@localhost ~]# smbclient -L 127.0.0.1 -U AValidloek
    Enter AValidloek's password:
    session setup failed: NT_STATUS_LOGON_FAILURE
    [root@localhost ~]#

  11. #11
    Join Date
    Nov 2008
    Location
    Canada
    Posts
    2,719

    Re: samba howto

    OK, you're getting nowhere because your user can not authenticate and then viewed as anonymous. You do have a user in the db but no common name so I can't tell if it's a local account or not. Yeah maybe I didn't rype clearly but try this:

    Paste the output of:
    smbclient -L 127.0.0.1 -U loek

  12. #12
    Join Date
    Nov 2010
    Posts
    256

    Re: samba howto

    Quote Originally Posted by beaker_
    OK, you're getting nowhere because your user can not authenticate and then viewed as anonymous. You do have a user in the db but no common name so I can't tell if it's a local account or not. Yeah maybe I didn't rype clearly but try this:

    Paste the output of:
    smbclient -L 127.0.0.1 -U loek
    Sharename Type Comment
    --------- ---- -------
    allusers Disk All Users
    IPC$ IPC IPC Service (Samba Server Version 3.5.6-71.fc14)
    loek Disk Home Directories
    Domain=[MYNETWORK] OS=[Unix] Server=[Samba 3.5.6-71.fc14]

    Server Comment
    --------- -------
    LINUX Samba Server Version 3.5.6-71.fc14
    LOEK-A4884B6B3F prive

    Workgroup Master
    --------- -------
    MYNETWORK LOEK-A4884B6B3F

  13. #13
    Join Date
    Nov 2008
    Location
    Canada
    Posts
    2,719

    Re: samba howto

    Ok.

    Enable samba home shares:
    Code:
    setsebool -P samba_enable_home_dirs on
    Check file permissions and paste the output of ls, trim if there's like 1000 files.:
    Code:
    su
    cd /home
    ls -lZ
    ls -lZ /home/shares/
    Also check & paste your groups:
    info loek
    Retry and see if everything working.


    Late Edit: Try accessing from the terminal like so
    smbclient \\\\127.0.0.1\\allusers -U loek
    ls
    exit
    Last edited by beaker_; 28th December 2010 at 09:25 PM.

  14. #14
    Join Date
    Nov 2010
    Posts
    256

    Re: samba howto

    Quote Originally Posted by beaker_
    Ok.

    Enable samba home shares:
    Code:
    setsebool -P samba_enable_home_dirs on
    Check file permissions and paste the output of ls, trim if there's like 1000 files.:
    Code:
    su
    cd /home
    ls -lZ
    ls -lZ /home/shares/
    Also check & paste your groups:


    Retry and see if everything working.


    Late Edit: Try accessing from the terminal like so
    [loek@localhost ~]$ su
    Wachtwoord:
    [root@localhost loek]# setsebool -P samba_enable_home_dirs on
    setsebool: SELinux is disabled.
    [root@localhost loek]# cd /home
    [root@localhost home]# ls -lZ
    drwx------. loek loek unconfined_u:object_r:user_home_dir_t:s0 loek
    drwx------. root root system_u:object_r:lost_found_t:s0 lost+found
    drwxr-xrwx. root root unconfined_u:object_r:home_root_t:s0 shares
    [root@localhost home]# ls -lZ /home/shares/
    drwxrwxrwx. root users unconfined_u:object_r:home_root_t:s0 allusers
    [root@localhost home]# info loek
    [root@localhost home]# smbclient \\\\127.0.0.1\\allusers -U loek
    Enter loek's password:
    Domain=[MYNETWORK] OS=[Unix] Server=[Samba 3.5.6-71.fc14]
    tree connect failed: NT_STATUS_ACCESS_DENIED
    [root@localhost home]#

  15. #15
    Join Date
    Nov 2008
    Location
    Canada
    Posts
    2,719

    Re: samba howto

    Restart the machine. info loek doesn't display your groups. File permissions would allow anynomous but valid users would not. So a restart to be sure the groups are updated. Double check system-config-users, your user 'loek' will need to be in groupname 'users'...

    Scratch that. Groupname users is uid 100. Make new group, samba_users (uid > 500) for ex., and edit smb.conf as needed. Restart to besure group udpdates and try again with smbclient.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Samba, howto auto start server on bootup on F14?
    By mcv2010 in forum Servers & Networking
    Replies: 2
    Last Post: 19th December 2010, 01:51 PM
  2. Samba and 389 Directory: Howto sync passwords?
    By HaikoH in forum Servers & Networking
    Replies: 0
    Last Post: 12th January 2010, 05:53 PM
  3. Samba - howto maintain a mount between reboots
    By supanova in forum Servers & Networking
    Replies: 2
    Last Post: 27th January 2006, 02:14 PM
  4. samba-vscan-clamav howto
    By nocolour in forum Using Fedora
    Replies: 0
    Last Post: 1st October 2004, 05:00 PM
  5. howto resize / partition, or howto unmount / ??
    By OoerictoO in forum Using Fedora
    Replies: 1
    Last Post: 28th September 2004, 01:51 AM

Tags for this Thread

Posting Permissions

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