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: (4) </ 1 2 [3] 4 >/

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

reply to topic new topic new poll
Topic: /dev/fb0 access denied when using fbi< Next Oldest | Next Newest >
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Jan. 25 2007,18:22 QUOTE

one thing about usermod -G....
I had the understanding that this replaces the user's groups, rather than adds to them.  Would you need to do this:
sudo usermod -G staff,dialout,fax,voice,cdrom,floppy,tape,sudo,audio,dip,video,games,users,usb,tty dsl

I'm not sure about that, but it's the command I use to fix dsl's permissions to use a subshell with mc.uci


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Jan. 26 2007,00:13 QUOTE

For special device files, I've used cp -a on them before to get them to work.
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Jan. 26 2007,00:51 QUOTE

That may not work for the framebuffer device, or other tty device.  I'm guessing cp tries to read the device, which i assume is constantly changing or being written...something like that (example: try "cat /dev/tty1" and the command doesn't complete). Copying some devices may just copy the /dev/whatever file itself, but I have a feeling that this is an exception.

--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
Zucca Offline





Group: Members
Posts: 524
Joined: Feb. 2006
Posted: Jan. 30 2007,12:07 QUOTE

Quote
      -G group,[...]
             A  list of supplementary groups which the user is also a member
             of.  Each group is separated from the next by a comma, with  no
             intervening  whitespace.   The  groups  are subject to the same
             restrictions as the group given with the  -g  option.   If  the
             user  is currently a member of a group which is not listed, the
             user will be removed from the  group.  This  behaviour  can  be
             changed  via  -a option, which appends user to the current sup-
             plementary group list.

AND
Quote
$ ls -lhaF /KNOPPIX/dev/fb* | head -n 3
crw--w--w-    1 root     tty       29,   0 Apr 15  2001 /KNOPPIX/dev/fb0
crw--w--w-    1 root     tty       29,   1 Apr 15  2001 /KNOPPIX/dev/fb0autodetect
crw--w--w-    1 root     tty       29,   0 Apr 15  2001 /KNOPPIX/dev/fb0current

Then this should work:
Code Sample
sudo usermod -a -G tty dsl


... But as usermod is old in dsl you must specify all the groups. ;(
I wonder if there's a way somehow to list groups where a user belongs to..?


--------------
Do you have it? - http://dy.fi/mak
Back to top
Profile PM WEB ICQ MSN 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Jan. 30 2007,14:34 QUOTE

As dsl: groups
As root: groups dsl

I imagine one could write a small script that uses groups to list your groups and appends to that, so you don't need to type a list of groups.

GRPS=`groups`
sudo usermod -G $GRPS tty dsl


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
15 replies since Jan. 23 2007,15:26 < Next Oldest | Next Newest >

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

Pages: (4) </ 1 2 [3] 4 >/
reply to topic new topic new poll
Quick Reply: /dev/fb0 access denied when using fbi

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