LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 10-12-2014, 02:31 PM   #1
davidsmith2k
LQ Newbie
 
Registered: Oct 2014
Posts: 5

Rep: Reputation: Disabled
Exclamation usb permissions?


i am migrating from xp to linux mint 17 for my radio han software but when i try to connect to baofeng via usb i get permission denied???

would apprecite some help as linux is still a bit strange to me at the moment

tahnks
david
 
Old 10-12-2014, 02:46 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,872

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
Generally, a normal user will have permissions to anything in the /home/user directory and not outside of it. With Mint, you should see the mount point for an external flash drive under /media/username. Check the permissions on it with: ls -ld /media/username. A little more info on how you are doing what you are doing would help.
 
Old 10-12-2014, 02:55 PM   #3
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 1,437

Rep: Reputation: 192Reputation: 192
Assuming the device node appears as /dev/ttyUSB*, examine the output from the following

Code:
ls -l /dev/ttyUSB*
This should list the relevant group that you need to belong to.

For example, I have an in-buit 3G modem that appears as
Code:
crw-rw---- 1 root dialout 188, 0 Oct 13 07:43 /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 1 Oct 13 07:43 /dev/ttyUSB1
crw-rw---- 1 root dialout 188, 2 Oct 13 07:42 /dev/ttyUSB2
I am a member of the 'dialout' group for user r/w access. (Different distros may assign different groups, depending on the udev rules supplied.)

Here's a guide regarding adding a user to a group. It can be done via CLI, or your distro may have a graphical utility for doing this.

http://www.cyberciti.biz/faq/howto-l...user-to-group/
 
Old 10-12-2014, 03:15 PM   #4
davidsmith2k
LQ Newbie
 
Registered: Oct 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi
I am using chirp to read/program my hand held transevier but only started with Linux mint17 today so an idiot guide would be nice?

Thanks david

---------- Post added 10-12-14 at 08:15 PM ----------

Hi
I am using chirp to read/program my hand held transevier but only started with Linux mint17 today so an idiot guide would be nice?

Thanks david
 
Old 10-12-2014, 08:44 PM   #5
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 1,437

Rep: Reputation: 192Reputation: 192
Bear in mind that we're not necessarily familiar with your radio device, so we don't know how it appears to your system. Based on a quick online search, it seems that it behaves as a USB serial device, so hence the advice about /dev/ttyUSB*. Of course, without further specific information from you, we're left to guess. Run the command that I gave you in a terminal and report back. The other output that might be useful is to plug in the device and run the following command in a terminal
Code:
dmesg|tail
That might help characterise the device behaviour for us.

Mint user guides (for various desktop environments) here:

http://www.linuxmint.com/documentation/user-guide/
 
Old 10-12-2014, 09:11 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,961

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
In a nutshell Chirp is an application to program memory channels in Amateur Radio equipment.

Did you buy your build your interface cable? As stated the interface cables appear as USB serial ports. If the cable is recognised correctly you should have /dev/ttyUSB0. Its possible that the device was created without read/write permissions for regular users. Did you select the correct serial port in the program?
 
Old 10-13-2014, 07:50 AM   #7
davidsmith2k
LQ Newbie
 
Registered: Oct 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
hi
ok i know you are all trying to help me

so i see /dev/ttyUSB0 at the end of the driver list in the chirp program to read/write to the handheld transevier
that is when i get permission denied as i said linux mint is new to me,i am used to using a windows xp system
so and idiots guide please where do i find the folder?? to check these permission.

on a good note linux is good for radio ham

thanks
david
 
Old 10-13-2014, 07:57 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,961

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
Post the output of the command:
ls -l /dev/ttyUSB0
 
Old 10-13-2014, 01:08 PM   #9
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 1,437

Rep: Reputation: 192Reputation: 192
Quote:
hi
ok i know you are all trying to help me

so i see /dev/ttyUSB0 at the end of the driver list in the chirp program to read/write to the handheld transevier
that is when i get permission denied as i said linux mint is new to me,i am used to using a windows xp system
so and idiots guide please where do i find the folder?? to check these permission.
I provided those instruction to you already. You still haven't provided the output from the terminal command as requested
Code:
ls -l /dev/ttyUSB*
 
Old 10-15-2014, 08:41 AM   #10
davidsmith2k
LQ Newbie
 
Registered: Oct 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Lightbulb usb permissions

ok i said i needed an idiots guide Termianl is like command in windows that was the bit i did not get but have now

i typed ls -l /dev/ttyUSB*
below is the outcome


david@david-K7S41GX ~ $ 1s -1 /dev/ttyUSB*
1s: command not found
david@david-K7S41GX ~ $ ls -l /dev/ttyUSB*
crw-rw---- 1 root dialout 188, 0 Oct 15 13:25 /dev/ttyUSB0
david@david-K7S41GX ~ $
 
Old 10-15-2014, 09:13 AM   #11
davidsmith2k
LQ Newbie
 
Registered: Oct 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
hi again

just tried to use chrip again this what i got will it be of any help???


could not open port /dev/ttyUSB0: [Errno 13] Permission denied: '/dev/ttyUSB0'


david
 
Old 10-15-2014, 10:08 AM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,961

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
Could be that your not a member of the dialout group or a modemanager problem. Try adding yourself to the dialout group.

sudo usermod -a -G dialout $USER

http://askubuntu.com/questions/13323...yusb0-on-12-04
 
Old 10-15-2014, 12:40 PM   #13
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
In addition to what michaelk said above, note that once you have added yourself to the dialout group, you will still need to logout and then login again for the change to be recognised.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HAL automount permissions differs between USB HD and USB memory stick Olaus Slackware 5 06-28-2010 07:34 PM
USB Flash Permissions tronayne Slackware 1 02-10-2009 09:46 AM
usb permissions jonbvgood Linux - Newbie 1 05-30-2008 06:14 PM
udev usb permissions socrbird Linux - Hardware 3 05-09-2008 05:54 PM
USB and permissions hilltop*Tech Linux - General 5 04-29-2004 10:19 PM


All times are GMT -5. The time now is 05:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration