Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Why xsane run as root!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
LAj
Apprentice
Apprentice


Joined: 22 May 2004
Posts: 294
Location: Avellino[Italy]

PostPosted: Sat Oct 21, 2006 6:50 pm    Post subject: Why xsane run as root! Reply with quote

Hi all,
I've found this configuring my new printer (...MFP :lol: ):
Code:
NeXT cdroot # ls -l /usr/bin/xsane
-rwsr-xr-x 1 root root 7112 15 giu 19:47 /usr/bin/xsane


I've used samsung drivers package that installs scanner and printer drivers in one shot
but reading INSTALL it asked for cups, ghostscript and sane.

Now that's all configured I give a try at xsane
and it came-up with a warning window: "You try to run XSane as ROOT, that really is DANGEROUS!"
than I try as a user but it show again!

Why there is such configuration?

Can I chmod?
_________________
They produce notes of any size as their own properties askng interests also.This is seignorage and goes to privates banks(FED, BCE).You don't have to pay to use $$,you can simply use your notes recovering monetary sovereignty.Public debt is not right!
Back to top
View user's profile Send private message
Tlaloc
Guru
Guru


Joined: 21 Feb 2005
Posts: 451
Location: Europe - Alps - Tyrol

PostPosted: Sat Oct 21, 2006 7:01 pm    Post subject: Reply with quote

Do i understand you right that this is a combined scanner/printer device?
For accessing sane/scanner stuff your user has to be in the scanner group!

Bye, val.
Back to top
View user's profile Send private message
LAj
Apprentice
Apprentice


Joined: 22 May 2004
Posts: 294
Location: Avellino[Italy]

PostPosted: Sat Oct 21, 2006 9:15 pm    Post subject: Reply with quote

Yes, scanner and printer: scx-4100

Why the ebuild don't make that? I've not a scanner group:
Code:
NeXT cdroot # groups
root bin daemon sys adm disk wheel floppy dialout tape video
NeXT cdroot #

but now, with these rights
Code:
NeXT cdroot # ls -l /usr/bin/xsane
-rwsr-xr-x 1 root root 7112 15 giu 19:47 /usr/bin/xsane
NeXT cdroot #

everyone can lunch xsane, that and everyone do that
make the process run with effective uid=0
and then the warning message is shown
_________________
They produce notes of any size as their own properties askng interests also.This is seignorage and goes to privates banks(FED, BCE).You don't have to pay to use $$,you can simply use your notes recovering monetary sovereignty.Public debt is not right!
Back to top
View user's profile Send private message
lagalopex
Guru
Guru


Joined: 16 Oct 2004
Posts: 562

PostPosted: Sat Oct 21, 2006 9:29 pm    Post subject: Reply with quote

Look in your /etc/group, there will most likely be a scanner group. Add your user to it.
And mine xsane is not suid root!
Back to top
View user's profile Send private message
LAj
Apprentice
Apprentice


Joined: 22 May 2004
Posts: 294
Location: Avellino[Italy]

PostPosted: Sat Oct 21, 2006 11:24 pm    Post subject: Reply with quote

Yes, scanner group is been added!
Have I to chmod /usr/bin/xsane ?
_________________
They produce notes of any size as their own properties askng interests also.This is seignorage and goes to privates banks(FED, BCE).You don't have to pay to use $$,you can simply use your notes recovering monetary sovereignty.Public debt is not right!
Back to top
View user's profile Send private message
LAj
Apprentice
Apprentice


Joined: 22 May 2004
Posts: 294
Location: Avellino[Italy]

PostPosted: Mon Oct 23, 2006 5:26 pm    Post subject: Reply with quote

Sorry,
it don't work if xsane is chmod-ed: no scannes are found!

But xsane warn about root privileges!
_________________
They produce notes of any size as their own properties askng interests also.This is seignorage and goes to privates banks(FED, BCE).You don't have to pay to use $$,you can simply use your notes recovering monetary sovereignty.Public debt is not right!
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Mon Oct 23, 2006 5:30 pm    Post subject: Reply with quote

If that's a usb device you probably need to be in the usb group too
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
LAj
Apprentice
Apprentice


Joined: 22 May 2004
Posts: 294
Location: Avellino[Italy]

PostPosted: Mon Oct 23, 2006 9:47 pm    Post subject: Reply with quote

Yes, he is!
This user can use usb devices: how can I check that /dev/{scanner} has the same rights as the other devices?

Whta's the dev node for scanner?
_________________
They produce notes of any size as their own properties askng interests also.This is seignorage and goes to privates banks(FED, BCE).You don't have to pay to use $$,you can simply use your notes recovering monetary sovereignty.Public debt is not right!
Back to top
View user's profile Send private message
LAj
Apprentice
Apprentice


Joined: 22 May 2004
Posts: 294
Location: Avellino[Italy]

PostPosted: Wed Oct 25, 2006 6:07 pm    Post subject: Reply with quote

I'm posting here again but maybe a new post is needed fot this ossevation: pleace help!

I've found an inconsistency in the man page for useradd command and how it work for me.
Man page says that defualt gid for the new account is 1 if -g option is not used.
I've created 3 account with the handbook procedure( http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1&chap=11 ) and a new group has been added for each user.
These are my group and passwd:
Code:
# less /etc/group
bin:x:1:root,bin,daemon
laj:x:1000:
lina:x:1005:
oriana:x:1006:
# less /etc/passwd
laj:x:1000:1000::/home/laj:/bin/bash
lina:x:1001:1005::/home/lina:/bin/bash
oriana:x:1002:1006::/home/oriana:/bin/bash


I think this can be related with the xsane problem cause of the bin group ID is 1.

But why we must have all these groups?
_________________
They produce notes of any size as their own properties askng interests also.This is seignorage and goes to privates banks(FED, BCE).You don't have to pay to use $$,you can simply use your notes recovering monetary sovereignty.Public debt is not right!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum