Results 1 to 6 of 6

Thread: Different passwords for different shares?

  1. #1
    Join Date
    Jul 2007
    Location
    Toronto, Ontario, Canada
    Beans
    265

    Different passwords for different shares?

    I was wondering if it's possible to set up the smb server so that each of my shares can have a different username and password. My brother keeps stealing my old school work, and I need to keep him out of mine while still giving access to his from my file server.

    Does anyone know how to do this? I have been unable to find anything that specific about configuration.

    Any help would be greatly appreciated,

    Thanks!

  2. #2
    Join Date
    Nov 2006
    Beans
    847

    Re: Different passwords for different shares?

    Doesn't samba obey file permissions? Keep your files in a folder that his user has no permissions for, chmod them to 700 or something.

    I think it is possible to do per share permissions but it's been a while since i messed with it.
    Steve

    http://xercestech.com - Insanely geeky projects n stuff

  3. #3
    Join Date
    Dec 2008
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Different passwords for different shares?

    There are no share passwords. You authenticate the user, not the share. After the user is authenticated, the underlying permissions authorize the use of the files.

    You can use the "valid user =" directive in the share stanza to limit the users of the share.

  4. #4
    Join Date
    Jul 2007
    Location
    Toronto, Ontario, Canada
    Beans
    265

    Re: Different passwords for different shares?

    The problem is the drive I'm trying to share folders on is a permanent NTFS drive in the computer. Every time I try to change permissions, it automatically changes them all back to root. I have NTFS-3G, or whatever it's called, but I still can't get around it.

    Any other options?

    Thanks!

  5. #5
    Join Date
    Dec 2008
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Different passwords for different shares?

    Quote Originally Posted by ownaginatious View Post
    The problem is the drive I'm trying to share folders on is a permanent NTFS drive in the computer. Every time I try to change permissions, it automatically changes them all back to root. I have NTFS-3G, or whatever it's called, but I still can't get around it.

    Any other options?

    Thanks!
    You might start here:
    http://www.samba.org/samba/docs/man/...sControls.html

  6. #6
    Join Date
    Nov 2006
    Beans
    847

    Re: Different passwords for different shares?

    If this is a machine that's going to be a samba server you should really use a filesystem that directly supports permissions like ext3.
    Steve

    http://xercestech.com - Insanely geeky projects n stuff

Bookmarks

Posting Permissions

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