Re: [Samba] smbstatus not working as non-root user

2005-01-31 Thread Laurent Blume
Hi all,
I haven't found any clear information yet about that problem.
I'm trying the following workaround, however. If anybody believes it's 
not the Right Way To Do It, please do not hesitate to tell me.

What I need: regular users to be able to use smbstatus, because they 
need to know what files are in use

What I did: I changed the group of smbstatus to smbnull, put its setid 
bit on, changed the group and permissions on the locks directory and all 
the .lck files to be writable by smbstatus.

This makes smbstatus work for regular users as it did before the upgrade.
Is it a security issue?
Laurent
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] smbstatus not working as non-root user

2005-01-25 Thread Laurent Blume
After some more investigation, I managed to find out that it's because 
this Samba is using lock files in /var/opt/samba/locks, such as 
connections.tdb.lck, which regular users can't access.

What I don't get, is how to disable their use?
On another box, using a slightly older version of HP CIFS server (based 
on Samba 2.2.8), there are no such files.

There are some difference in the lock configuration beetween the two 
systems, but from their descriptions, there is no obvious one.

Still looking for any clue on how to fix this...
Laurent
Laurent Blume wrote:
This is for HP CIFS Server A.01.11.03 / Samba 2.2.12, on HP-UX 11.0.
I've got a problem with smbstatus: if run as root, it displays 
everything as expected.
If run as a regular user, it displays only the following:

$ smbstatus
tdb(/var/opt/samba/locks/connections.tdb): Failed to create active lock 
file
tdb(/var/opt/samba/locks/connections.tdb): Failed to create active lock 
file
/var/opt/samba/locks/connections.tdb not initialized.
This is normal if an SMB client has never connected to your server.

Of course, plenty of Windows clients have been connecting to that box.
The permissions on the tdb file are the same as the ones on another box, 
where it works.
And it used to work on that same system, after it was installed.
So I'm not sure where to look...

There is nothing in the log.smbd file since Samba was started, 10 days ago.
Any idea?
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] smbstatus not working as non-root user

2005-01-24 Thread Laurent Blume
Hello all,
This is for HP CIFS Server A.01.11.03 / Samba 2.2.12, on HP-UX 11.0.
I've got a problem with smbstatus: if run as root, it displays 
everything as expected.
If run as a regular user, it displays only the following:

$ smbstatus
tdb(/var/opt/samba/locks/connections.tdb): Failed to create active lock file
tdb(/var/opt/samba/locks/connections.tdb): Failed to create active lock file
/var/opt/samba/locks/connections.tdb not initialized.
This is normal if an SMB client has never connected to your server.
Of course, plenty of Windows clients have been connecting to that box.
The permissions on the tdb file are the same as the ones on another box, 
where it works.
And it used to work on that same system, after it was installed.
So I'm not sure where to look...

There is nothing in the log.smbd file since Samba was started, 10 days ago.
Any idea?
TIA,
Laurent
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba