Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14
My username is in the "users" group in /etc/passwd. I am a member of "groupx" in the /etc/group file. Here is the very basics that I am using right now: ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Banned
    Join Date
    Dec 2002
    Location
    Texas
    Posts
    242

    Samba Subdirectories


    My username is in the "users" group in /etc/passwd.
    I am a member of "groupx" in the /etc/group file.
    Here is the very basics that I am using right now:

    [public]
    path = /home/public
    writable = yes

    # ls -l /home/public/
    total 20
    drwxrwx--- 2 root groupx 4096 Jan 14 15:54 priv

    Why is it that when I try to access "priv" I am denied?
    Does Samba not understand that I am in the "groupx"?
    Is there a config option that I can use that might help?

    PS- My goal is to have a single share that has various
    subdirectories for every company department, and it
    should provide access to only their group. Unless we
    feel the need to give the world "read" to the directory.
    (Which we do have plans for so folks can share files.)

  2. #2
    Linux Engineer
    Join Date
    Jan 2003
    Location
    Lebanon, pa
    Posts
    994
    Can you paste your smb.conf so I can take a look at it?

  3. #3
    Banned
    Join Date
    Dec 2002
    Location
    Texas
    Posts
    242
    [global]
    workgroup = WORKGROUP
    server string = Samba
    hosts allow = 10.0.1.
    encrypt passwords = yes
    local master = yes
    dns proxy = no
    log file = /var/log/samba/%m.log
    security = user

    [public]
    browseable = yes
    path = /home/public
    public = yes
    writable = yes
    create mode = 0660
    directory mode = 0770

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer
    Join Date
    Jan 2003
    Location
    Lebanon, pa
    Posts
    994
    What exactly is "priv"? I don't see a share for that setup.

  6. #5
    Linux User
    Join Date
    Jul 2002
    Location
    Daytona Beach, FL
    Posts
    487
    add these lines to the share

    valid users = @groupx
    write list = @groupx

    i share a documents folder like this, usable only by group test


    [documents]
    comment = My Documents
    browsable = yes
    write list = @test
    path = /documents
    valid users = @test
    directory mode = 0770
    createmode = 0660
    writable = yes
    majorwoo

    Quiet brain, or I\'ll stab you with a Q-tip.

  7. #6
    Banned
    Join Date
    Dec 2002
    Location
    Texas
    Posts
    242
    Quote Originally Posted by genlee
    What exactly is "priv"? I don't see a share for that setup.
    "priv" is not a share, it is a subdirectory.

    I was trying to see if I could setup subdirectories
    for each group under one share, instead of going
    with a ton of shares. Then, someone like myself
    in the IT department, can have 1 mapping instead
    of like 10 or something. Not possible?

  8. #7
    Linux Engineer
    Join Date
    Jan 2003
    Location
    Lebanon, pa
    Posts
    994
    I would recommend seperate shares for this. It isn't a good idea to have other groups access to each others documents.

  9. #8
    Banned
    Join Date
    Dec 2002
    Location
    Texas
    Posts
    242
    I was using Linux's group permissions, which would
    allow "no access" unless you are within the certain
    groups. Works well under Linux, but I suppose this
    Samba does not fully support Linux group perms...

  10. #9
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    It's probably because samba doesn't fully understand unix logins. My suggestion would be to add that support to the samba source and post back a patch to samba.org so that everyone can benefit.

  11. #10
    Linux Engineer
    Join Date
    Jan 2003
    Location
    Lebanon, pa
    Posts
    994
    Group permissions must be seet in the smb.conf itself. Remember samba has its own passwd and doesn't use the systems. Though you can have samba sync its paswords with the system passwords.

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
  •