Avatar of Andrej Pirman
Andrej Pirman
Flag for Slovenia asked on

Linux share to Windows XP machine via VPN

Hi,

I have huge problems with one customer, which has:
- SUSE 10 Linux server, version 2.6.16
- 5 Windows XP and Win7 clients

SHARING folders is pain in the ass, really.

For example, all users on SUSE are members of the group "users" and "share".
Shared folders on SUSE are owned by "root" and group "users"...
...BUT only first level of shared folders is visible. If Windows user clicks on any folder, permission denied!
To enable users to browse down to folder structure, I must enable OWNER, GROUP and OTHERS full permissions on all folders. If I omit OTHERS, noone can browse.

TODAY's PROBLEM:
I added user "user8" to SUSE under "Users and groups".
I put it to be memeber of "users", "share" and many other groups.

Then on Windows XP I created case-sensitive "user8" with password under users.
Tried:

      net use \\suse-server\shares\common-files /USER:user8

but no joy :(
Also tried adding my existing Windows XP login username and password to SUSE  as a new user, under "users" group...but still cannot browse folders below common folder.

Whatever I do...permisison denied.
I can only see first \SHARES folder, but cannot browse deeper.

Any idea what am I missing?
Linux NetworkingLinuxLinux Distributions

Avatar of undefined
Last Comment
Andrej Pirman

8/22/2022 - Mon
Dave Howe

You probably need to use smbpasswd to add the users to the smbpassword database (assuming you are using one; its the default for suse, but if you use the samba server applet in the Network Services part of yast2, you can define use of an LDAP or even MySQL db for the lookups.)
Andrej Pirman

ASKER
Thanx, DavwHowe, but this is kinda rocket-science for me (I am windows geek).

What I don't get:
Under "Users and Groups" in YAST I defined "user8" and his primary group. Then this GROUP is also primary group under FOLDER permissions. From "windows geek" perspective this should work.

Ok, but now you say (and I was afraid to hear this) that I need to use "smbpasswd" from commandline. Ok, I did that:

     smbpasswd -a user8
     Password:
     Password:

What now?
Nothing changed by doing so. How will "smbpasswd" know, that this user must have access privileges to specific folder?

Sorry for dumb questions, but it's confusing to me, and I actually do not know what I am doing - some stuff from commandline, others via mouse click...I am actually more familliar with Debian derivates, but still an amateur :)
ASKER CERTIFIED SOLUTION
Daniel McAllister

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Dave Howe

oh, and there are extensive learning resources for Samba available at http://www.samba.org/samba/docs/ - including a full copy of the official o'reilly book on the subject :)
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Andrej Pirman

ASKER
Great, guyz!
Maybe I am step further, but I still miss one step: how to access to the folder, which is owned by group "users" with user "user8", which is member of "users" group?

I did run the 3 steps suggested on shared root folder, and I noticed only GID checkbox became active. But still I cannot access any folder from my Windows machine, except if I set full permissions for OTHERS.
Andrej Pirman

ASKER
...actually, when modify permissions and set FULL permissions for OTHERS on folder:
- these changes are not propagated to the directory tree, but are only valid for NEW folders I create. these new folders or files are owned by "nobody", if that helps
- also, I cannot check recursive checkbox when changing permissions, because this checkbox is grayed out
Andrej Pirman

ASKER
Workaround for temporary functionality,  I set in one traversing folder just EXECUTE bit for OTHERS, so anybody can traverse it, and in most important folder for user8, which is below this one, I did this:

find . -type f -exec chmod 776 '{}' \;
find . -type d -exec chmod 2775 '{}' \;

So user8 cannot see:

   \\shares\main-folder\

but he can type directly:
 
  \\shares\main-folder\IMPORTANT-FOLDER

and see all its content, and edit files etc.

Maybe I should read some documentation, but hey...I work with Linuz servers once or twice a year, so even if I learn something, I forget it before I could use it next time.
thanx, guyz!
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
sancelot

please post your samba conf file
Andrej Pirman

ASKER
Thanx for now, guyz! My problem is not solved entirely, but actually I did not want to dig into root of the problem, but rather bring it to some usable level - which I did with your help.