Avatar of Andrej Pirman
Andrej PirmanFlag 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
Avatar of Dave Howe
Dave Howe
Flag of United Kingdom of Great Britain and Northern Ireland image

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.)
Avatar of Andrej Pirman
Andrej Pirman
Flag of Slovenia image

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
Avatar of Daniel McAllister
Daniel McAllister
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
SOLUTION
Avatar of Dave Howe
Dave Howe
Flag of United Kingdom of Great Britain and Northern Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of Dave Howe
Dave Howe
Flag of United Kingdom of Great Britain and Northern Ireland image

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 :)
Avatar of Andrej Pirman
Andrej Pirman
Flag of Slovenia image

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.
Avatar of Andrej Pirman
Andrej Pirman
Flag of Slovenia image

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
Avatar of Andrej Pirman
Andrej Pirman
Flag of Slovenia image

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!
Avatar of sancelot
sancelot

please post your samba conf file
Avatar of Andrej Pirman
Andrej Pirman
Flag of Slovenia image

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.
Linux
Linux

Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.

71K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo