Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Trying to addLinNeighborhood to extension, Problem with permissions?< Next Oldest | Next Newest >
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Sep. 09 2007,14:06 QUOTE

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.
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Sep. 09 2007,15:14 QUOTE

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>`
Back to top
Profile PM 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Sep. 09 2007,15:16 QUOTE

Suid means the s flag, it would look like this if it was set: rwsr-xr-x linneighborhood
just chmod u+s it..


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Sep. 09 2007,15:17 QUOTE

Hats, this time you beat me :P

--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Sep. 09 2007,15:54 QUOTE

Thanks:
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:

   http://www.gtk.org/setuid.html

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?  :)
Back to top
Profile PM 
6 replies since Sep. 09 2007,14:06 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Trying to addLinNeighborhood to extension

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code