LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-29-2003, 12:59 PM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
USER can't use modem


Hi all folks,

RH 8.0
Lucent modem (winmodem)
=======================

User can't use modem

I made following test

As ROOT
# cu -l /dev/modem
Connected.
AT
OK
~[localhost].
Disconnected.
#

But it could not work as USER
$ cu -l /dev/modem
Connected.

It hanged here and I was not allowed to type

A temp file was created /var/lock/LCK...Modem to lock the modem

Any solution? Thanks in advance.

B.Regards
Stephen
 
Old 05-30-2003, 03:05 AM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
any programs or other devices that the modem needs
to connect have to be useable by the user too. like pppd
and or chat.
you could make some of the programs suid root, but
currently distributions make a group called ppp-users
or something similar, and add users to that group
 
Old 05-30-2003, 04:24 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi whansard,

Thanks for your response.

# locate ppp-users
# locate ppp-user
# locate pppd-user
# locate pppd-users

Sorry, I could not find that item. The real problem to me is faxing as USER. A temp text file is created to lock the modem.

Any solution?

Thanks in advance.

B.Regards
Stephen
 
Old 05-30-2003, 05:48 AM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
ppp-users is a group, not a file.
check
man groups
if you have kuser on your system, run that, and
you will see the groups listed. It's old time unix
system admin stuff.
man chown
you make the devices and files necessary to run your
script owned by the group of your choice. you could
make a new group called faxusers or modemusers.
then make the all the programs you need to run your
modem stuff owned by the group modemusers, and
add any users that need access to that stuff to the
modemusers group.
 
Old 06-01-2003, 07:43 AM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi whansard,

Thanks for your advice.

Now I temporarily solve the problem as follows:

To enable USER to start KPPP first

Use "Menu Editor" to edit

Extras -> Internet -> KPPP

Command : /usr/sbin/kppp

Now KPPP can be started as USER
KStart -> Extras -> Internet - > KPPP
without requesting for password.


But USER is still not allowed using the modem to fax without first

1) start KPPP as USER
2) connect it to ISP
3) then disconnect it

Afterward USER is allowed to fax. Without completing the foregoing
procedure a temporary text lock file will be created at

/var/lock/LCK...modem

$ ls -l /var/lock/
total 12
-r--r--r-- 1 satimis satimis 11 Jun 1 19:23 LCK..modem

After removing this lock file with following commands
# chmod +w /var/lock/LCK...modem
# rm /var/lock/LCK...modem

Start KPPP as USER to connect ISP and afterward disconnect it.

Then USER is allowed to fax. It took me long time to discover this
trick.

Can you shed me some light to solve this problem. Thanks in advance.

B.Regards
Stephen
 
Old 06-01-2003, 08:26 AM   #6
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
do you think possibly the lucent modem modules
don't load when you need them as a user?
i would say though to set whatever programs your
cu script needs to run as SUID root.
 
Old 06-01-2003, 12:35 PM   #7
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi whansard,

Kindly advise how to test/check it.

B.R.
Stephen
 
Old 06-01-2003, 01:01 PM   #8
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
the lucent modem uses i think ltmodem or
lt_modem and ltserial maybe.
lsmod lists loaded modules.

for suid stuff

http://216.239.51.100/search?q=cache...hl=en&ie=UTF-8
 
Old 06-01-2003, 10:25 PM   #9
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi whansard,

RH 8.0
======

$ su -
$ password
# find / -type f \( -perm -4000 -o -perm -2000 \) -exec ls -l {}
\;
-rwx--S--t 1 root root 0 Sep 21 2002 /dev/pktcdvd0
find: /proc/1602/fd: No such file or directory
find: /proc/2153/fd/4: No such file or directory
-rwxr-sr-x 1 root mailman 7123 Aug 16 2002
/var/mailman/bin/clone_member
....
...


I think following files maybe relevant
-rwxr-sr-x 1 root mail 17477 Jun 24 2002
/usr/bin/lockfile
-rwxr-sr-x 1 root lock 12325 Jun 24 2002
/usr/sbin/lockdev

Shall I change their permission to 'rwxrwxsr-x'? What is 's'
representing for?

Kindly advise. Thanks in advance.

B.Regards
satimis


Complete suid.list

-rwxr-sr-x 1 root mailman 6620 Aug 16 2002
/var/mailman/bin/add_members
-rwxr-sr-x 1 root mailman 3838 Aug 16 2002
/var/mailman/bin/arch
-rwxr-sr-x 1 root mailman 2462 Aug 16 2002
/var/mailman/bin/check_db
-rwxr-sr-x 1 root mailman 8964 Aug 16 2002
/var/mailman/bin/check_perms
-rwxr-sr-x 1 root mailman 3519 Aug 16 2002
/var/mailman/bin/list_members
-rwxr-sr-x 1 root mailman 8090 Aug 16 2002
/var/mailman/bin/config_list
-rwxr-sr-x 1 root mailman 4474 Aug 16 2002
/var/mailman/bin/digest_arch
-rwxr-sr-x 1 root mailman 1282 Aug 16 2002
/var/mailman/bin/dumpdb
-rwxr-sr-x 1 root mailman 4915 Aug 16 2002
/var/mailman/bin/find_member
-rwxr-sr-x 1 root mailman 2957 Aug 16 2002
/var/mailman/bin/list_lists
-rwxr-sr-x 1 root mailman 3051 Aug 16 2002
/var/mailman/bin/remove_membe
rs
-rwxr-sr-x 1 root mailman 2386 Aug 16 2002
/var/mailman/bin/mmsitepass
-rwxr-sr-x 1 root mailman 2440 Aug 16 2002
/var/mailman/bin/move_list
-rwxr-sr-x 1 root mailman 6983 Aug 16 2002
/var/mailman/bin/newlist
-rwxr-sr-x 1 root mailman 1530 Aug 16 2002
/var/mailman/bin/paths.py
-rwxr-sr-x 1 root mailman 315 Aug 16 2002
/var/mailman/bin/paths.pyc
-rwxr-sr-x 1 root mailman 8234 Aug 16 2002
/var/mailman/bin/sync_members
-rwxr-sr-x 1 root mailman 2952 Aug 16 2002
/var/mailman/bin/rmlist
-rwxr-sr-x 1 root mailman 6245 Aug 16 2002
/var/mailman/bin/withlist
-rwxr-sr-x 1 root mailman 12809 Aug 16 2002
/var/mailman/bin/update
-rwxr-sr-x 1 root mailman 925 Aug 16 2002
/var/mailman/bin/version
-rwxr-sr-x 1 root mailman 35407 Aug 16 2002
/var/mailman/cgi-bin/admin
-rwxr-sr-x 1 root mailman 35407 Aug 16 2002
/var/mailman/cgi-bin/admindb
-rwxr-sr-x 1 root mailman 35423 Aug 16 2002
/var/mailman/cgi-bin/edithtml
-rwxr-sr-x 1 root mailman 35431 Aug 16 2002
/var/mailman/cgi-bin/handle_o
pts
-rwxr-sr-x 1 root mailman 35423 Aug 16 2002
/var/mailman/cgi-bin/listinfo
-rwxr-sr-x 1 root mailman 35407 Aug 16 2002
/var/mailman/cgi-bin/options
-rwxr-sr-x 1 root mailman 35407 Aug 16 2002
/var/mailman/cgi-bin/private
-rwxr-sr-x 1 root mailman 35407 Aug 16 2002
/var/mailman/cgi-bin/roster
-rwxr-sr-x 1 root mailman 35431 Aug 16 2002
/var/mailman/cgi-bin/subscribe
-rwxr-sr-x 1 root mailman 4089 Aug 16 2002
/var/mailman/cron/nightly_gzi
p
-rwxr-sr-x 1 root mailman 2279 Aug 16 2002
/var/mailman/cron/bumpdigests
-rwxr-sr-x 1 root mailman 3141 Aug 16 2002
/var/mailman/cron/checkdbs
-rwxr-sr-x 1 root mailman 1028 Aug 16 2002
/var/mailman/cron/crontab.in
-rwxr-sr-x 1 root mailman 8328 Aug 16 2002
/var/mailman/cron/gate_news
-rwxr-sr-x 1 root mailman 5824 Aug 16 2002
/var/mailman/cron/mailpasswds
-rwxr-sr-x 1 root mailman 1530 Aug 16 2002
/var/mailman/cron/paths.py
-rwxr-sr-x 1 root mailman 316 Aug 16 2002
/var/mailman/cron/paths.pyc
-rwxr-sr-x 1 root mailman 12044 Aug 16 2002
/var/mailman/cron/qrunner
-rwxr-sr-x 1 root mailman 2049 Aug 16 2002
/var/mailman/cron/senddigests
-rwxrwsr-x 1 root mailman 2 Aug 16 2002
/var/mailman/data/pending_sub
scriptions.db
-rwxrwsr-x 1 root mailman 1055 Aug 16 2002
/var/mailman/filters/bowa-str
ip
-rwxrwsr-x 1 root mailman 36104 Aug 16 2002
/var/mailman/mail/wrapper
-rwxr-sr-x 1 root mailman 2882 Aug 16 2002
/var/mailman/scripts/mailowne
r
-rwxr-sr-x 1 root mailman 9516 Aug 16 2002
/var/mailman/scripts/driver
-rwxr-sr-x 1 root mailman 1507 Aug 16 2002
/var/mailman/scripts/answer_m
ajordomo_mail
-rwxr-sr-x 1 root mailman 2351 Aug 16 2002
/var/mailman/scripts/mailcmd
-rwxr-sr-x 1 root mailman 1530 Aug 16 2002
/var/mailman/scripts/paths.py
-rwxr-sr-x 1 root mailman 319 Aug 16 2002
/var/mailman/scripts/paths.py
c
-rwxr-sr-x 1 root mailman 3316 Aug 16 2002
/var/mailman/scripts/post
-rwsr-xr-x 1 root root 37688 Aug 30 2002 /usr/bin/chage
-rwsr-xr-x 1 root root 35000 Aug 30 2002 /usr/bin/gpasswd
-rwsr-xr-x 1 root root 37140 Jul 25 2002 /usr/bin/at
-rwxr-sr-x 1 root mail 17477 Jun 24 2002
/usr/bin/lockfile
-rwxr-sr-x 1 root slocate 31661 Jun 24 2002 /usr/bin/slocate
-r-s--x--x 1 root root 15368 May 29 2002 /usr/bin/passwd
-r-xr-sr-x 1 root tty 10224 Jul 19 2002 /usr/bin/wall
-rws--x--x 1 root root 16835 Aug 31 2002 /usr/bin/chfn
-rws--x--x 1 root root 15664 Aug 31 2002 /usr/bin/chsh
-rws--x--x 1 root root 6999 Aug 31 2002 /usr/bin/newgrp
-rwxr-sr-x 1 root tty 18605 Aug 31 2002 /usr/bin/write
-rwsr-xr-x 1 root root 34662 Jul 20 2002 /usr/bin/crontab
-rwsr-xr-x 1 root root 18328 Aug 30 2002
/usr/bin/lppasswd
-rwsr-xr-x 1 root root 17743 Oct 22 2002
/usr/bin/kcheckpass
-rwxr-sr-x 1 root root 60955 Oct 22 2002 /usr/bin/kdesud
-rwsr-xr-x 1 root root 8345 Oct 22 2002
/usr/bin/desktop-create-kmenu
-rwsr-xr-x 1 root root 19131 Jun 24 2002 /usr/bin/rcp
-rwsr-xr-x 1 root root 15376 Jun 24 2002 /usr/bin/rlogin
-rwsr-xr-x 1 root root 10689 Jun 24 2002 /usr/bin/rsh
---s--x--x 1 root root 84984 Jun 28 2002 /usr/bin/sudo
-r-xr-s--x 1 root games 79675 Aug 14 2002
/usr/bin/gnome-stones
-r-xr-s--x 1 root games 52265 Aug 14 2002
/usr/bin/freecell
-r-xr-s--x 1 root games 54992 Aug 14 2002 /usr/bin/gataxx
-r-xr-s--x 1 root games 35497 Aug 14 2002 /usr/bin/glines
-r-xr-s--x 1 root games 82042 Aug 14 2002
/usr/bin/gnibbles
-r-xr-s--x 1 root games 93193 Aug 14 2002
/usr/bin/gnobots2
-r-xr-s--x 1 root games 36476 Aug 14 2002
/usr/bin/gnotravex
-r-xr-s--x 1 root games 51137 Aug 14 2002 /usr/bin/gnomine
-r-xr-s--x 1 root games 66708 Aug 14 2002
/usr/bin/mahjongg
-r-xr-s--x 1 root games 30743 Aug 14 2002 /usr/bin/gnotski
-r-xr-s--x 1 root games 253639 Aug 14 2002 /usr/bin/gtali
-r-xr-s--x 1 root games 61038 Aug 14 2002 /usr/bin/iagno
-r-xr-s--x 1 root games 30855 Aug 14 2002
/usr/bin/same-gnome
-r-xr-s--x 1 root games 71065 Aug 14 2002 /usr/bin/sol
-r-sr-xr-x 1 uucp uucp 122210 Jul 20 2002 /usr/bin/uucp
-r-sr-sr-x 1 uucp uucp 168260 Jul 20 2002 /usr/bin/cu
-r-sr-sr-x 1 uucp uucp 56799 Jul 20 2002 /usr/bin/uuname
-r-sr-xr-x 1 uucp uucp 132739 Jul 20 2002 /usr/bin/uustat
-r-sr-xr-x 1 uucp uucp 123438 Jul 20 2002 /usr/bin/uux
-rws--x--x 1 vcsa root 7491 Aug 24 2002
/usr/lib/mc/bin/cons.saver
-rwsr-xr-x 1 root root 5100 Sep 6 2002
/usr/libexec/pt_chown
-rws--x--x 1 root root 162476 Aug 14 2002
/usr/libexec/openssh/ssh-keys
ign
-rwsr-xr-x 1 root root 33071 Jun 24 2002 /usr/sbin/ping6
-rwsr-xr-x 1 root root 13718 Jun 24 2002
/usr/sbin/traceroute6
-rwxr-sr-x 1 root utmp 15570 Jun 24 2002
/usr/sbin/utempter
-rwxr-sr-x 1 root smmsp 754801 Aug 30 2002
/usr/sbin/sendmail.sendmail
-rws--x--x 1 root root 29676 Sep 5 2002
/usr/sbin/userhelper
-rwsr-xr-x 1 root root 15502 Sep 5 2002
/usr/sbin/usernetctl
-rwxr-sr-x 1 root utmp 13414 Aug 30 2002
/usr/sbin/gnome-pty-helper
-rwsr-xr-x 1 root root 10205 Jul 2 2002
/usr/sbin/userisdnctl
-rwsr-xr-x 1 root root 32076 Jun 24 2002
/usr/sbin/traceroute
-rwsr-sr-x 1 root root 734360 Nov 14 2002 /usr/sbin/kppp
-rwxr-sr-x 1 root lock 12325 Jun 24 2002
/usr/sbin/lockdev
-r-s--x--- 1 root apache 20469 Sep 5 2002 /usr/sbin/suexec
-rwxr-sr-x 1 root postdrop 95744 Jul 24 2002
/usr/sbin/postdrop
-rwxr-sr-x 1 root postdrop 84885 Jul 24 2002
/usr/sbin/postqueue
-r-sr-sr-x 1 uucp uucp 287182 Jul 20 2002 /usr/sbin/uucico
-r-sr-sr-x 1 uucp uucp 136759 Jul 20 2002 /usr/sbin/uuxqt
-rws--x--x 1 root root 1884018 Sep 6 2002
/usr/X11R6/bin/XFree86
-rwsr-xr-x 1 root root 35302 Jun 24 2002 /bin/ping
-rwsr-xr-x 1 root root 81996 Aug 31 2002 /bin/mount
-rwsr-xr-x 1 root root 40700 Aug 31 2002 /bin/umount
-rwsr-xr-x 1 root root 19132 Aug 30 2002 /bin/su
-r-sr-xr-x 1 root root 119592 Aug 2 2002
/sbin/pwdb_chkpwd
-r-sr-xr-x 1 root root 17180 Aug 2 2002
/sbin/unix_chkpwd
-rwxr-sr-x 1 root root 12578 Sep 5 2002 /sbin/netreport
-r-s--x--x 1 root root 7132 Aug 2 2002
/sbin/pam_timestamp_check
 
Old 06-02-2003, 04:26 AM   #10
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
i'm sorry. i didn't mean for you to list suid stuff, i just
wanted you to read a little about it before you set
your programs suid and see how to set and unset them.
if your program is suid, you might have luck with it deleting
the lock file itself, or whatever is going on.
 
Old 06-02-2003, 09:59 AM   #11
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi whansard,

Noted with thanks.

B.Regards
satimis
 
  


Reply



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
allowing single user to use modem jojotx0 Linux - General 13 11-15-2005 11:26 AM
New User - Modem Problem. rvijay Mandriva 4 02-17-2005 02:55 PM
First time user who needs to install cable modem. RazielX Debian 17 09-11-2004 06:07 PM
New user need your help with modem (USR) ...urgent.... fanarr@yahoo.co Linux - Hardware 5 01-02-2003 09:14 AM
user modem authorization philfighter Linux - General 3 07-24-2001 04:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:39 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
Open Source Consulting | Domain Registration