unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* guix shell set user groups to access security token
@ 2023-01-15 11:08 Alexander Asteroth
  2023-01-15 13:11 ` Csepp
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Asteroth @ 2023-01-15 11:08 UTC (permalink / raw)
  To: help-guix

Dear all,

I'm trying to get my security token software (sealone) to work under
guix SD. The software is unfortunately not available in source and seems
to expect a FSH filesystem. I therefore tried to run it in guix shell. A
first trial was:

guix shell -CFD ungoogled-chromium gcc:lib --expose=/dev

in this environment I can execute the software and the tokes get's
connected but reports some error condition and is not usable. It might
have to do with the user not beeing in group cdrom which usually is
necessary to access /dev/sg0.

Any idea how to set the groups the user is member of in guix shell?
Or any other idea how I could get such software to work under guix?

Cheers,
Alex


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: guix shell set user groups to access security token
  2023-01-15 11:08 guix shell set user groups to access security token Alexander Asteroth
@ 2023-01-15 13:11 ` Csepp
  2023-01-15 15:20   ` Alexander Asteroth
  0 siblings, 1 reply; 3+ messages in thread
From: Csepp @ 2023-01-15 13:11 UTC (permalink / raw)
  To: Alexander Asteroth; +Cc: help-guix


Alexander Asteroth <alexander.asteroth@h-brs.de> writes:

> Dear all,
>
> I'm trying to get my security token software (sealone) to work under
> guix SD. The software is unfortunately not available in source and seems
> to expect a FSH filesystem. I therefore tried to run it in guix shell. A
> first trial was:
>
> guix shell -CFD ungoogled-chromium gcc:lib --expose=/dev
>
> in this environment I can execute the software and the tokes get's
> connected but reports some error condition and is not usable. It might
> have to do with the user not beeing in group cdrom which usually is
> necessary to access /dev/sg0.
>
> Any idea how to set the groups the user is member of in guix shell?
> Or any other idea how I could get such software to work under guix?
>
> Cheers,
> Alex

Bit of an ugly hack but what I usually do is chown devices I'm working
with to myself.
Haven't tried that in a guix container but in theory it should work.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: guix shell set user groups to access security token
  2023-01-15 13:11 ` Csepp
@ 2023-01-15 15:20   ` Alexander Asteroth
  0 siblings, 0 replies; 3+ messages in thread
From: Alexander Asteroth @ 2023-01-15 15:20 UTC (permalink / raw)
  To: Csepp; +Cc: help-guix

Thank's for the simple workaround. It helped to find out that the error
is not caused by the user's group ids. In fact it's related to missing
network access. I solved it by providing --network to the shell but
unfortunately this only worked exactly one single time. Now as soon as I
enable the network, the usb-connection to the token vis /dev/sg0 is not
estblished at all. Very strange (in particular, that it worked one
time).

On Sun, Jan 15 2023, 14:11:45, Csepp <raingloom@riseup.net> wrote:

> Alexander Asteroth <alexander.asteroth@h-brs.de> writes:
>
>> Dear all,
>>
>> I'm trying to get my security token software (sealone) to work under
>> guix SD. The software is unfortunately not available in source and seems
>> to expect a FSH filesystem. I therefore tried to run it in guix shell. A
>> first trial was:
>>
>> guix shell -CFD ungoogled-chromium gcc:lib --expose=/dev
>>
>> in this environment I can execute the software and the tokes get's
>> connected but reports some error condition and is not usable. It might
>> have to do with the user not beeing in group cdrom which usually is
>> necessary to access /dev/sg0.
>>
>> Any idea how to set the groups the user is member of in guix shell?
>> Or any other idea how I could get such software to work under guix?
>>
>> Cheers,
>> Alex
>
> Bit of an ugly hack but what I usually do is chown devices I'm working
> with to myself.
> Haven't tried that in a guix container but in theory it should work.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-01-15 15:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-15 11:08 guix shell set user groups to access security token Alexander Asteroth
2023-01-15 13:11 ` Csepp
2023-01-15 15:20   ` Alexander Asteroth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).