[wplug] gphoto help

Jay wplug at caldron.com
Mon May 5 19:41:21 EDT 2003


On Sun, May 04, 2003 at 09:15:02PM -0400, Rick Smith wrote:
> On Sun, May 04, 2003 at 07:43:04PM -0400, Jay wrote:
> > I am using Debian 3.0r1 and Gphoto 0.43 and KDE 2.2.2-14.  As root, I
> > can get gphoto to access my camera.  However, as non-root, I cannot
> > access my camera.  I receive the following:
> > 
> > Error failed to open /dev/ttys1
> > Please check the permissions manual.
> > 
> > If I issue the following:
> > 
> > jmkramer at shale:~$  ls -l /dev/ttys1
> > crw-rw-rw-    1 root     tty        3,  49 Mar 14  2002 /dev/ttys1
> > 
> > jmkramer at shale:~$  groups
> > jmkramer tty cdrom audio dip
> > 
> > As shown jmkramer is a member of tty
> > 
> > I also tried setuid for both user and group (didn't work) then changed the user name to my local name:
> > shale:/dev# ls -l ttys1
> > crwSrwSrw-    1 jmkramer tty        3,  49 Mar 14  2002 ttys1
> > 
> > It still does not work.  What am I doing wrong.
> 
> I don't know.
> I'd put permissions back like you found them.
> Then I'd ..
> 1. run these two to see if there is any problem opening the file
>   perl -e 'open(FD, "/dev/ttys1") or die "Open: $!\n"'
>   perl -e 'open(FD, "> /dev/ttys1") or die "Open: $!\n"'
> 
> If there is no message, then the file opened fine.
> If there is, then it could be some type of file locking going on?
> It's possible to open the file with locks (fcntl(2)), and maybe
> something else is running?  Probably not.
> 
> 2. read the source for gphoto, looking for the error message.
> and figure out what was going on.


I got it working.  I was setting permissions, groups, setuid, etc for
/dev/ttys1 when I should have been setting permissions for /dev/ttyS1

Thanks for all the advise.

Jay



More information about the wplug mailing list