Other Help Topics :: /dev/fb0 access denied when using fbi



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

For special device files, I've used cp -a on them before to get them to work.
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.
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..?

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

Next Page...
original here.