OpenSuse Sharing

I have an issue when I share out a folder to allow Windows users to be able to use that share. The folder that I share can be seen and accessed by windows users but when and if the XP user creates a new folder or file there is a lock on the icon through suse. I can not either write or create anything within that folder. It seems that the permissions now have to be set by the user who created the file or folder through windows. Why are you not able to set inherited permissions to all child files and folders to allow some or all users read and write to these?

Yes, samba is not easy to configure at all. I always have to edit smb.conf because I don’t find the right settings in Yast. A great howto on samba is here: Linux HOWTOs and Tutorials: Suse Linux 10.0, 10.1 openSUSE 10.2, 10.3, 11.0
The author, swerdna, is an active member of openSUSE forums and, while searching the forums, you will surely appreciate his contributions.
You might find help sooner when you post your /etc/samba/smb.conf

On Tue December 2 2008 03:16 pm, vnavna wrote:

>
> I have an issue when I share out a folder to allow Windows users to be
> able to use that share. The folder that I share can be seen and accessed
> by windows users but when and if the XP user creates a new folder or
> file there is a lock on the icon through suse. I can not either write or
> create anything within that folder. It seems that the permissions now
> have to be set by the user who created the file or folder through
> windows. Why are you not able to set inherited permissions to all child
> files and folders to allow some or all users read and write to these?
>
>
vnavna;

I’m fairly sure this is just a permission problem. You might consider using
the “force user=” parameter in your share definition and/or give “other” the
permissions you want, then use the "force create mode = " and "force
directory mode = ’ parameter in the share. (see: man smb.conf for the use of
these parameters.)

If you can still not get it to work could you post the contents
of /etc/samba/smb.conf? You can conceal any sensitive parameters. Also
describe the linux permissions on the shared directory(s).


P. V.
Is this on the test?

I will be checking the help files on that link because I am not all that familiar with Linux yet but I know enough to get in trouble. I have tried other distros of Linux before and I noticed that openSUSE is the easiest one to work with.

I will take a look at the smb.conf. Thank you for your help.

If my mind serves me correctly I think that there is a inherit permissions option for samba. You may try man smb.conf. I have read it several times, because it is long, and I always forget something I need later. Here is a clip from the man page which may help.

inherit permissions (S)
The permissions on new files and directories are normally governed by create mask, directory
mask, force create mode and force directory mode but the boolean inherit permissions parameter
overrides this.

      New directories inherit the mode of the parent directory, including bits such as setgid.

      New files inherit their read/write bits from the parent directory. Their execute bits continue to
      be determined by map archive, map hidden and map system as usual.

      Note that the setuid bit is never set via inheritance (the code explicitly prohibits this).

      This  can  be  particularly useful on large systems with many users, perhaps several thousand, to
      allow a single [homes] share to be used flexibly by each user.

      Default: inherit permissions = no

Hope this helps.