App trying to get USB device but failing due to 'Premission deniad'
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
App trying to get USB device but failing due to 'Premission deniad'
Hi, this is my first time working with linux, so assume you are speaking to retarded monkey. I'm trying to develop a simple app that will to stuff when reciving DMX signal. I found a framework/application that does just the thing i need (OLA: https://wiki.openlighting.org/index....g_Architecture), but i have one problem. When running the OLA app and plug the device that it is supposed to work with to the USB port i get cryptic 'Premission deniad' error as shown in the following image.
I did it with touch and nano commands, i dont know if i was supposed to do it like that. But after doing it nothing changed.
Screenshots: https://i.imgur.com/TESIQrw.png
First line says "olad -l 3", its to fire up OLA deamon. The feature of this software is that it refuses to run as a root so i cant write sudo before it. The instances of diabled are not a problem, those are plugins in the software that allow it to comunnicate with devices of the different producers. The last line is for USB Serial plugin that is supposed to work with Enttec device i have. https://i.imgur.com/PLabZTX.png
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
Rep:
Hey Annon Annon,
Welcome to Linux Questions.
I don't think I'll be of much help - I am unfamiliar with the tool you are trying to use (and am not a developer). However, one thing in your first picture hit me :
Your tool seems to be trying to access the USB drive at its block device "file" (/dev/ttyUSB0) ... Unless this is how it is supposed to work, this is unusual. You would need to access the USB drive via a mount point.
I won't go any further for now - let us know if this gives you any ideas and if you need further assistance.
however i was able to narrow the problem.
I went into /dev directory and changed ttyUSB0 file's permissions with chmod 777 command. After that the app and device started to work togather!
However, new problem is that after rebooting the PC and also after unpluging and pluging the device, the file is removed and created again with the same old permissions. How do i set up the system so each time i plug the usb device in it has sufficient permissions?
You should run
'ls -l /dev/ttyUSB0' and look to see what group owns it. On my system that would be the 'dialout' group.
You then add your user to that group
'sudo usermod -a -G dialout USERNAME' using your username.
Then log out and log back in.
Now the command 'groups' should show you as a member of the 'dialout' group and you should be able to have access to that device.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.