Re: [opencbm-user] Errors compiling opencbm on Linux.
Brought to you by:
strik
|
From: Wolfgang M. <wo...@ne...> - 2007-11-04 13:08:56
|
Hello Spiro, Spiro Trikaliotis schrieb: > [...] > The udev rule is executed as expected: > >> luca@c65:~/opencbm/cbm4win2/cbm4linux/sys/linux$ ll /dev/cbm >> crw-rw-r-- 1 root users 10, 177 2007-11-03 19:45 /dev/cbm > > These are exactly the permissions you should have according to the rule! > >> luca@c65:~/opencbm/cbm4win2/cbm4linux/sys/linux$ id >> uid=1000(luca) gid=1000(luca) >> groups=20(dialout),24(cdrom),25(floppy),29(audio),30(dip),44(video),1000(luca),1002(vboxusers) > > You must "only" add yourself to the "users" group, or change the > permissions in the rule. Thus, either add yourself to the "users" group > (as you have already done), or change the line > > KERNEL=="cbm", GROUP="users", MODE="0664" > > to > > KERNEL=="cbm", GROUP="luca", MODE="0664" > > to give the group "luca" the permission (and no-one else), > or to > > KERNEL=="cbm", GROUP="users", MODE="0666" > > to allow everyone to use opencbm. > > I will have to add a specific section to this into the documentation. > > >> So, i added my accout "luca" to the group user, and then i run 'newgrp >> users', now i my account is able to use /dev/cbm device. Not sure it is >> a sensible way to fix the error though. > > In fact, it is exactly the way it was expected to work. I see, this > shoujld be better documented. In fact, I totally forgot about this > myself. I don't know anything about the concepts of users and groups regarding Linux kernel drivers, but isn't it possible to declare more than one user and/or group to have specific access modes for the driver? That way Luca could list every single user that is allowed to have access to the cbm module. Not that I would recommend that here, but worth to be documented, if this is a possible option. Womo |