Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Samba alternative group share problem

Avatar of RegProctor
RegProctorFlag for United States of America asked on
Linux NetworkingServer HardwareFile Sharing Software
9 Comments1 Solution641 ViewsLast Modified:
Hello,

I have a user, "reg"  which is a member of "users" but also a member of the groups "svn", "web-dev" and a couple of other groups.

When logged on as this user on my server I can get to a directory called ".svn" but not when using the same user through a samba share.

Below are the details of my setup  and what happens when when I list from the samba share vs. on the server as the same user and the samba config files. Both the client and the server are Linux computers, OS = openSUSE 11.0 (client) & 11.2 (server). The uid of "reg" is the same on the server and client.

The share in question is "[data]" which you can see from the smb.conf file is a very simple config.

The share is mounted on the client with a normal cifs mount.

As you can see from line 48 below that from the client I get a "permission denied" which is not the case from the server (line 67).

Client cifs-mount version is 3.4.5
Server samba version is 3.4.2


Any help appreciated.


SAMBA CONFIG. FILES:

- SMB.CONF
[global]
        add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s /bin/false %m$
        domain logons = No
        domain master = No
        passdb backend = smbpasswd
        security = user
        username map = /etc/samba/smbusers
        wins support = No
        workgroup = Multiverse
        create mask = 0774
        directory mask = 0774
        netbios name = Neutrino
        hide dot files = no
	encrypt passwords = yes

[netlogon]

[data]
        inherit acls = No
        path = /data
        read only = No

- SMBUSERS
root = administrator
;nobody = guest pcguest smbguest
reg = reg


FROM SAMBA SHARE AS USER reg:

reg@quark> l
total 36
drwxrwsr-x   6 reg   1001     0 2010-02-18 23:11 ./
drwxr-xr-x   9 reg users   4096 2010-02-18 18:22 ../
-rwxrwxr--   1 reg   1001   169 2010-02-18 23:11 .buildpath*
drwxrwsrwx   7 reg   1001     0 2010-02-19 16:49 files/
drwxrwsr-x 193 reg   1001     0 2010-02-18 23:08 modules/
-rwxrwxr--   1 reg   1001   506 2010-02-18 23:11 .project*
-rw-r-Sr--   1 reg   1001 10876 2010-02-18 22:53 settings.php
-rwxrwxr--   1 reg   1001  9453 2010-02-18 22:45 settings.php.prev*
drwxrws---   6 115 tomcat     0 2010-02-18 23:08 .svn/
drwxrwsr-x  59 reg   1001     0 2010-02-19 18:04 themes/

reg@quark>  l .svn
ls: cannot open directory .svn: Permission denied

reg@quark>

FROM THE SERVER AS reg:

reg@neutrino> l
total 56
drwxrwsr-x   6 reg web-dev  4096 2010-02-18 23:11 ./
drwxr-sr-x   8 reg web-dev  4096 2010-02-18 18:19 ../
-rwxrwxr--   1 reg web-dev   169 2010-02-18 23:11 .buildpath*
drwxrwsrwx   7 reg web-dev  4096 2010-02-19 16:49 files/
drwxrwsr-x 193 reg web-dev  4096 2010-02-18 23:08 modules/
-rwxrwxr--   1 reg web-dev   506 2010-02-18 23:11 .project*
-rw-r-Sr--   1 reg web-dev 10876 2010-02-18 22:53 settings.php
-rwxrwxr--   1 reg web-dev  9453 2010-02-18 22:45 settings.php.prev*
drwxrws---   6 svn svn      4096 2010-02-18 23:08 .svn/
drwxrwsr-x  59 reg web-dev  4096 2010-02-19 18:04 themes/

reg@neutrino> l .svn
total 32
drwxrws--- 6 svn svn     4096 2010-02-18 23:08 ./
drwxrwsr-x 6 reg web-dev 4096 2010-02-18 23:11 ../
-rwxrwx--- 1 svn svn      296 2010-02-18 23:08 all-wcprops*
-rwxrwx--- 1 svn svn      572 2010-02-18 23:08 entries*
drwxrws--- 2 svn svn     4096 2010-02-18 22:45 prop-base/
drwxrws--- 2 svn svn     4096 2010-02-18 22:45 props/
drwxrws--- 2 svn svn     4096 2010-02-18 23:08 text-base/
drwxrws--- 5 svn svn     4096 2010-02-18 23:08 tmp/

reg@neutrino>
ASKER CERTIFIED SOLUTION
Avatar of Daniel McAllister
Daniel McAllisterFlag of United States of America imagePresident, IT4SOHO, LLC

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 9 Comments.
See Answers