1753709 Members
4906 Online
108799 Solutions
New Discussion юеВ

Re: Problems with SAMBA

 
Alex Lavrov.
Honored Contributor

Problems with SAMBA

Hello,

We have a problem with our samba sever.

Every user that connects to samba, on the server appears as "nobody". The fs is writeable, but users can only create new files but not delete or modify them.

Every user appears in /etc/samba/smbpasswd (but not mapped to nobody in /etc/samba/smbusers).

What can be a problem?

Thanx.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
10 REPLIES 10
Rob Leadbeater
Honored Contributor

Re: Problems with SAMBA

Hi Alex,

There are many different ways of configuring security in Samba.

What have you got for the security parameter in smb.conf ?

Cheers,

Rob
Alex Lavrov.
Honored Contributor

Re: Problems with SAMBA

Hello Rob,
the issue is that smb.conf was not changed.

smb.conf attached.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Stuart Browne
Honored Contributor

Re: Problems with SAMBA

Ok, I'm going to go with the assumption that users are accessing the 'public' share with 'Guest' access.

If the users aren't properly authenticating, and being mapped via 'smbusers' to a Unix user, then the permissions are going to be all over the place.

You've not defined a specific 'guest user', so they get to use 'nobody'.

I'm picking that 'nobody' doesn't have permission to write to '/appl/public'. This is why you're having issues.

A few ways around it.

1) Ensure that everybody authenticates properly and has a mapped unix username in '/etc/samba/smbusers'.

2) Set up a guest user properly for the 'public' share, ensuring it has UNIX write permissions to '/appl/public'.

.. Well, they're basically it come to think of it .. ;)
One long-haired git at your service...
Steven E. Protter
Exalted Contributor

Re: Problems with SAMBA

Shalom Alex,

Mah Shalomchah?

security = domain

This will not use the smbpasswd file

To complete integration with windows domain:

system-config-authentication

Use toe GUI to join the domain, you will need a windows admin password to do this.

or change security=user and then the smbpasswd file will start to get used.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Rob Leadbeater
Honored Contributor

Re: Problems with SAMBA

Hi,

I take it things have worked in the past...

Did the Windows guys change anything on the domain controllers ? Maybe a mixed mode Active Directory domain got changed to native mode...

Cheers,

Rob
Alex Lavrov.
Honored Contributor

Re: Problems with SAMBA

Hello all and thanx for the replies.

Changing all config files will probably solve the problem and if there is no other chose we'll do it. The weird thing that it stopped working early this morning without any changes that I'm aware of.

We'll dig a bit more with current configuration and then probably will change the configs and maps files.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Steven E. Protter
Exalted Contributor

Re: Problems with SAMBA

Hmmm. Nothing changed on Linux. Functionality stopped working.

Blame the Windows or network guys!

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Rob Leadbeater
Honored Contributor

Re: Problems with SAMBA

Another thought...

Maybe the computer account for your Samba server got disabled or deleted.

See whether you're still part of the domain with

# net rpc testjoin

Cheers,

Rob
Alex Lavrov.
Honored Contributor

Re: Problems with SAMBA

After many tries all suggestions that I found failed to work ....

Since it's RedHat 7.3 "server" with 30GB of data on it, files were copied to another file server and this one will be reinstalled with Fedora 6 tomorrow.


Thanx for the replies,
Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)