I agree too that adding freeswitch to the "dialout" group is the best solution. I tried "usermod -a" option but freeswitch is still denied. 

Re USB modems. Yes, I added udev rules, too,  to change the owner from root to freeswitch.

No opposition if I add this to the Wiki as a "workaround only"?


On Sun, Jan 12, 2014 at 2:32 AM, Dušan Dragić <dragic.dusan@gmail.com> wrote:
I agree with Iskren, there is probably no need to add a udev rule in this case. Adding the user to the dialout group is simpler.
Just one thing, with usermod you can use the "-a" (--append) option to achieve the same result as with gpasswd:
usermod -a -G dialout freeswitch

Of course udev is can still be used if you want to create permanent symlinks for usb modems or something like that.


On 11 January 2014 18:54, Iskren Hadzhinedev <iskren.hadzhinedev@ikiji.com> wrote:

Hello Nandy,

While this will work you should not alter udev's default permissions.

A cleaner and better solution would be to add the user "freeswitch" to the group "dialout" with the command "gpasswd -a freeswitch dialout" or with

"usermod -G dialout freeswitch", the `gpasswd' command being prefferable because with usermod you're supposed to list all additional groups that you want the user freeswitch to be a member of.

 

Cheers,

--

Iskren Hadzhinedev

System Administrator

 

The Idea Factory | 20 Mearns Street | Aberdeen | AB11 5AT | UK

T: 01224 607500

VAT Reg No: 982 4936 74. Company registered in Scotland, SC237116

On Sunday 12 January 2014 01:04:11 Nandy Dagondon wrote:

> Hi to all!

>

> mod_gsmopen doesn't load on CentOS x64. USB device permission denied:

> crw-crw---- 1 root dialout /dev/ttyUSB*

>

> To solve this problem, I found this solution somewhere - adding udev this

> more relax rule:

> KERNEL=="ttyUSB[0-9]*,NAME="ttyUSB%n",SYMLINK="%k",GROUP="dialout",MODE="066

> 6"

>

> Lately, I tried this - making Freeswitch own the device:

> KERNEL=="ttyUSB[0-9]*,NAME="ttyUSB%n",SYMLINK="%k",OWNER="freeswitch",GROUP=

> "dialout",MODE="0660"

>

> I'd like to add this on the Wiki unless there's a better solution. Please

> advise.

>

> /Nandy


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Dušan Dragić

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org