Operating System - HP-UX
1823920 Members
3091 Online
109667 Solutions
New Discussion юеВ

Re: Help with samba users writing files to share

 
SOLVED
Go to solution
William Pribble
Frequent Advisor

Help with samba users writing files to share

Hello everyone,

I have samba running on my HP-UX 11.0 server. I have a basic default configuration for my shares. I have users, who are part of a development group, who need to access a samba share on their pc's. When the users access the share they are not allowed to write to the share. I have been adding the users to the samba database via the swat tool. The permissions on the samba share are '755 owner=oracle group=devel' The development members are members of group devel. If I change the permissions on the samba share to 777, then the users can write files to the share. In my share config, the guest user is smbnull, I added smbnull to the devel group, but still the users can not write files to the samba share directory. any help is greatly appreciated.

Thanks everyone.
6 REPLIES 6
Ronelle van Niekerk
Regular Advisor
Solution

Re: Help with samba users writing files to share

Just off the top of my head, checkj thes things:


1) under [global] make sure that readonly = no and not yes.

2) Insert this line under that share in the smb.conf file:

writable = true
rm -r /it/managers
Darren Prior
Honored Contributor

Re: Help with samba users writing files to share

Hi Elaine,

Here's some pointers of things to check:

1) run smbstatus whilst your users are connected, this will show whether they are connected as a particular user - or as the guest user (smbnull in your case.) If they're connected as guest that implies that something is wrong with your authentication.

2) check that the log level in the global section of your smb.conf is set to 2; if not, set it and restart CIFS. Then you will start logging information about how you're accessing files on the share.

It would be useful to see your smb.conf to determine your security method and check the other settings.

regards,

Darren
Calm down. It's only ones and zeros...
RAC_1
Honored Contributor

Re: Help with samba users writing files to share

You need writable = true under a share name.
There is no substitute to HARDWORK
Darren Prior
Honored Contributor

Re: Help with samba users writing files to share

Hi all,

I've been investigating the writable/writeable parameter in the smb.conf man page.

It's the inverse of the read only parameter, hence I believe if you already have read only = no in the [global] section, you don't have to put writable = yes or read only = no under each share.

A useful tool for seeing exactly what you have set up is testparm - which will show you all the parameters and their values.

Elaine - it could also be useful if you post the output of testparm -s too ;)

regards,

Darren
Calm down. It's only ones and zeros...
Suresh Patoria
Super Advisor

Re: Help with samba users writing files to share

Hi,

First of all u put the permission for all shares is 777

then put the entry in smb.conf in share tab
writable=yes
browsable=yes

thanx
William Pribble
Frequent Advisor

Re: Help with samba users writing files to share

Thanks for the great and quick information.
writable = true did the job!!!

Thanks again everyone.