sudo 4.6.4 Aborted

Dirk Hohndel dirk at hohndel.org
Mon May 15 06:37:01 PDT 2017


On Mon, May 15, 2017 at 09:05:03AM +0200, Martin Měřinský wrote:
> On Sun, 2017-05-14 at 23:54 -0700, Thiago Macieira wrote:
> > On domingo, 14 de maio de 2017 23:22:55 PDT Martin Měřinský wrote:
> > > > we should fix the reason you run as root in the first place.
> > > > 
> > > > > Because importing dives from DC doesn't work for me as a user.
> > > > > So
> > > > > for
> > > > > the short moment I run Subsurface as a root.
> > > > > 
> > > > > I tried, what manual says, but it didn't work.
> > > > > 
> > > > > sudo usermod -a -G dialout mermar
> > > > > sudo usermod -a -G uucp mermar
> > > > > 
> > > > > subsurface divelog.2017-04-10.xml
> > > > > Insufficient privileges to open the device /dev/ttyUSB0 Suunto
> > > > > (HelO2)
> > > > 
> > > > Can you send us the output of
> > > > 
> > > > ls -l /dev/ttyUSB0
> > > 
> > > crw-rw---- 1 root dialout 188, 0 kvě 15 08:21 /dev/ttyUSB0
> > 
> > And did you log out and then back in after running the usermod
> > command?
> 
> I did.
> 
> >  Check that the "id" command shows dialout.
> 
> Seems OK.
> 
> id mermar
> uid=1000(mermar) gid=1000(mermar)
> groups=1000(mermar),4(adm),10(uucp),20(dialout),24(cdrom),27(sudo),30(d
> ip),46(plugdev),118(lpadmin),128(sambashare)

So this user is allowed to read and write /dev/ttyUSB0

If you run Subsurface as this user, do you still get the error you
described earlier? That seems somewhat unlikely

/D


More information about the subsurface mailing list