Trying to addLinNeighborhood to extension

Forum: Net
Topic: Trying to addLinNeighborhood to extension
started by: Juanito

Posted by Juanito on Sep. 09 2007,14:06
I'm trying to add LinNeighborhood to a Samba-3 extension I'm working on, but I seem to have a problem with permissions.

It's myunderstanding that the permissions on the files in /opt/app should be root.root. When I run LinNeighborhood, the window comes up with the machines on the network, but when I try to mount a share I get the following error:

"smbmnt must be installed suid root for direct user mounts (1001, 1001) smbmnt failed: 1"

The permissions on LinNeighborhood are root.root so I don't understand why I get this error. In fact, I get the same error if I move the samba.dsl extension to /opt as well...

Any ideas? I'm launching LinNeighborhood as user dsl.

Posted by ^thehatsrule^ on Sep. 09 2007,15:14
What's the permission on the executable? (paste from `ls -l`)

suid or setuid means to set the permission bit on a file to have it executed as the owner of the file... in this case the owner has to be root.
Try comparing the permissions on the file before and after you run `chmod u+s <your file>`

Posted by curaga on Sep. 09 2007,15:16
Suid means the s flag, it would look like this if it was set: rwsr-xr-x linneighborhood
just chmod u+s it..

Posted by curaga on Sep. 09 2007,15:17
Hats, this time you beat me :P
Posted by Juanito on Sep. 09 2007,15:54
Code Sample
$ sudo chmod u+s /opt/samba-3/bin/smbmnt
$ sudo chmod u+s /opt/samba-3/bin/smbumount

Seems to have done the trick.

It didn't like:
Code Sample
$ sudo chmod u+s /opt/samba-3/bin/LinNeighborhood
$ LinNeighborhood

Gtk-WARNING **: This process is currently running setuid or setgid.
This is not a supported use of GTK+. You must create a helper
program instead. For further details, see:

Refusing to initialize GTK+.
So I took that off again with emelFM (now I know what that set uid button does).

'Learning something every day - is that in the dsl book?  :)

Posted by roberts on Sep. 09 2007,16:17
Yes, it is just those two files( smbmnt, and smbumount), as can be seen by looking inside samba.dsl
Posted by ^thehatsrule^ on Sep. 09 2007,17:58
Typically gui/frontend applications aren't setuid.
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.