SCIENTIFIC-LINUX-USERS Archives

November 2009

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Aditya Gadre <[log in to unmask]>
Reply To:
Date:
Sun, 8 Nov 2009 10:52:26 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (82 lines)
Hi Andrew,

Thank you very much for your email.

As you mentioned in the email, using a separate configuration file for each
serial device will indeed solve the issue, but I feel that it must not be the
default mode of operation. I use multiple USB to serial devices, and although I
use persistent udev naming rules, I do not really like the idea of creating a
configuration file for each device. For the user "usv", I want to quickly go
through all serial devices to check that they are operating normally and hence
would like to change the serial device (setting A) and its associated baud rate
etc on the go. Essentially, I do not want to change any particular setting just
for the user usv to make it default for that user, but would like the user usv
to be able to  make such changes on the go.

As I mentioned in my earlier email, user usv cannot change serial port settings,
such as the serial device (settings A-D), but can change settings such as baud
rate, parity etc (settings E-G). I would not like to rely on a separate
configuration file for each serial device.

The /etc/minicom.users has only one configuration line uncommented and it reads

# Everyone has access to all configurations.
ALL

All the permissions you mentioned, for the minicom binary and serial devices,
are identical on my computer.

In the past, I have used minicom on SL 5.3 and on Ubuntu and Gentoo
distributions,
but had never encountered this behavior.

Thank you,
- Aditya

Quoting Dr Andrew C Aitchison <[log in to unmask]>:

> On Sat, 7 Nov 2009, Aditya Gadre wrote:
>
> > Hi,
> >
> > I am using SL 5.4 (2.6.18-164.6.1.el5, x86_64, no i386 at all) and have a
> > problem with using minicom as a standard user. I would appreciate any help!
> >
> > I have a user named "usv" which is in two groups - usv and uucp. I
> installed
> > minicom and when I first tried running it, minicom asked me to create a
> > default file in /etc by running "minicom -s" as root. I did that and could
> > run minicom without any problems as root. However, when I run "minicom -s"
> > as user usv, and try to change serial port settings, I am not allowed to
> > change the serial port setting. I get a message "You are not allowed to
> > change this parameter". I am allowed to change only options E, F and G
> > (baud, parity, number of bits and flow control). I tried searching on
> > internet about this, but could not get any answer. I was wondering if I am
> > missing any group/permissions etc and would really appreciate any help!
>
> My minicom binary has ownership/permissions:
>   -rwxr-xr-x 1 root uucp 174136 Apr  7  2007 /usr/bin/minicom
>
> The serial lines are mostly root only, but one is accessible by uucp:
> # ls -l /dev/ttyS*
> crw-rw---- 1 root uucp 4, 64 Aug 25 06:50 /dev/ttyS0
> crw------- 1 root root 4, 65 Aug 25 06:50 /dev/ttyS1
> crw------- 1 root root 4, 66 Aug 25 06:50 /dev/ttyS2
> crw------- 1 root root 4, 67 Aug 25 06:50 /dev/ttyS3
>
> /etc/minicom.users also controls access to minicom configs.
>
> -----
> It looks as though you are supposed to use a different setting
> file for each port. If you want a setting for ttyS0, first run
> "minicom -s ttyS0" as root and then "minicom ttyS0" as usv
>
> Which settings are you trying to change just for user usv ?
> With a system config for each serial line (or connected device)
> I would not expect users to need different settings for A-D.
>
> --
> Dr. Andrew C. Aitchison		Computer Officer, DPMMS, Cambridge
> [log in to unmask]	http://www.dpmms.cam.ac.uk/~werdna
>

ATOM RSS1 RSS2