[wplug] gphoto help
Rick Smith
rick at rbsmith.com
Sun May 4 21:15:02 EDT 2003
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.
More information about the wplug
mailing list