Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16
I'm newbie to Samba. So, this may be a too easy question for most of here This is what I want: A server "A" will be configured as a file ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2007
    Posts
    20

    Question How to configure Samba as file server?


    I'm newbie to Samba. So, this may be a too easy question for most of here

    This is what I want:

    A server "A" will be configured as a file server to be shared by some users:

    - a public shared folder to be "read" by anyone;
    - different shared group folders to be "read/write" by users only in that group;
    - different shared home folders to be "read/write" only by individual users
    - when a user logins to his own machine, the above 3 types of folders should be automatically mounted on his local machine for him to access.

    How to set up this Samba file server and how to configure client machine? Is it possible to mount different network home folders on the same client machine when different users login?

    Thanks!

  2. #2
    Linux Guru sdousley's Avatar
    Join Date
    Feb 2004
    Posts
    1,790
    Will all the client machines be Linux based or windows based?
    "I am not an alcoholic, alcoholics go to meetings"
    Registered Linux user = #372327

  3. #3
    Just Joined!
    Join Date
    Mar 2007
    Posts
    20
    Quote Originally Posted by sdousley View Post
    Will all the client machines be Linux based or windows based?
    All client machines are linux.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Newbie mazer's Avatar
    Join Date
    Jul 2006
    Location
    Tucson, Arizona, USA
    Posts
    109
    Quote Originally Posted by licht View Post
    All client machines are linux.
    Why do you want a samba server then?

  6. #5
    Just Joined!
    Join Date
    Mar 2007
    Posts
    20
    Quote Originally Posted by mazer View Post
    Why do you want a samba server then?
    There will be some windows clients later. But it seems it is comparatively easier to configure a windows client. So, I need something that can handle both linux and windows right. It seems to me that samba is such a thing. Or not? Shall I use NIS or something for this (see goals listed in the question)?

    Thanks!

  7. #6
    Linux Guru sdousley's Avatar
    Join Date
    Feb 2004
    Posts
    1,790
    What versions of windows will the windows computers be running? If it's a "Pro" version, then you could still use NFS and install Microsoft SFU (Services for Unix) onto the windows machines, allowing you to map NFS shares and also create NFS shares.
    "I am not an alcoholic, alcoholics go to meetings"
    Registered Linux user = #372327

  8. #7
    Just Joined!
    Join Date
    Aug 2007
    Posts
    5
    Quote Originally Posted by licht View Post
    I'm newbie to Samba. So, this may be a too easy question for most of here

    This is what I want:

    - a public shared folder to be "read" by anyone;
    - different shared group folders to be "read/write" by users only in that group;
    - different shared home folders to be "read/write" only by individual users
    - when a user logins to his own machine, the above 3 types of folders should be automatically mounted on his local machine for him to access.

    How to set up this Samba file server and how to configure client machine? Is it possible to mount different network home folders on the same client machine when different users login?

    Thanks!
    put this in your /etc/samba.smb.conf (or /etc/smb.conf)
    [public]
    path = /path/to/folder
    writeable = no
    browseable = yes
    guest ok = yes

    - different shared group folders to be "read/write" by users only in that group;
    [groupfolders]
    path = /path/to/folder
    valid users = @groupname

    - different shared home folders to be "read/write" only by individual users
    [individualusers]
    path = /path/to
    valid users = user, user, user
    read only = yes
    write list = user, user, user

    - when a user logins to his own machine, the above 3 types of folders should be automatically mounted on his local machine for him to access.
    put a mapping on the users desktop, or execute it automaticcaly when logging in.

    Something like that. Try it out!

    ps: don't forget to put the right permissions on your folders!

  9. #8
    Just Joined!
    Join Date
    Mar 2007
    Posts
    20
    Quote Originally Posted by sdousley View Post
    What versions of windows will the windows computers be running? If it's a "Pro" version, then you could still use NFS and install Microsoft SFU (Services for Unix) onto the windows machines, allowing you to map NFS shares and also create NFS shares.
    It seems to me to better use Samba bcoz of these:

    - samba supports both both linux and windoz
    - nfs is not safe (remember read articles on this somewhere. is it or not?)
    - is SFU free?

  10. #9
    Just Joined!
    Join Date
    Mar 2007
    Posts
    20
    Quote Originally Posted by Manuuz View Post
    put this in your /etc/samba.smb.conf (or /etc/smb.conf)
    Thanks! This helps a lot!

  11. #10
    Linux Guru sdousley's Avatar
    Join Date
    Feb 2004
    Posts
    1,790
    Quote Originally Posted by licht View Post
    It seems to me to better use Samba bcoz of these:

    - samba supports both both linux and windoz
    So does NFS with SFU.
    Quote Originally Posted by licht View Post
    - nfs is not safe (remember read articles on this somewhere. is it or not?)
    Nothing i seem to recall about it not being safe, i use it all the time for unix-unix. Only reason i dont use it on the laptop is cos that's XP home cos that's what came with it.
    Quote Originally Posted by licht View Post
    - is SFU free?
    Indeed it is, just google for Services for unix, more often than not the top item
    "I am not an alcoholic, alcoholics go to meetings"
    Registered Linux user = #372327

Page 1 of 2 1 2 LastLast

Posting Permissions

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