LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-28-2003, 08:49 PM   #1
Exadoor6
LQ Newbie
 
Registered: Jul 2003
Location: Kansas City
Distribution: Red Hat 9
Posts: 3

Rep: Reputation: 0
Question Permissions?


I have just recently got my puter up an running. I got some help with it on the modem, but now I can't seem to be able to get into the config file for it. How do I tell what file it is linked to if the permission starts with an "L". Then what kind of permission starts with a "C", I have several books and no where does it mention a "C". I am looking to turn off the sound on the modem so I don't hear all that squaking when it dials.
 
Old 07-28-2003, 09:13 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"How do I tell what file it is linked to if the permission starts with an "L" "

The command:
ls -l
will list your files. Any links are shown as link.name->target.file
Type in:
man ls
to get a semi comprehendable description of how ls works.

If you are using a GUI file manager then the file manager can be configured to display the target names beside the link names.

"Then what kind of permission starts with a "C" "

The first character of permissions is file type, not permissions.
C means the file is a character device.
L means that the file is a link.
D means that the file is a directory.
- means that the file is an ordinary file.
B means that the file is a block device.

and there are probably others that don't come immediately to mind.

"I am looking to turn off the sound on the modem so I don't hear all that squaking when it dials."

That is done in your modem initialization string. Find the Hayes commands that your software issues to the modem and change the speaker on/off control from M1 or M2 to M0 (speaker off). The modem command probably will contain an M1 or M2 to turn on the modem speaker and then later an M0 to turn it off after the connection is made. Simply change all Mx commands to M0. It may use Lx commands to set the speaker volume. Change all Lx commands to M0.

kppp or wvdial or whatever dialout software your are using will call the Hayes commands something like the modem initialization string.

Last edited by jailbait; 07-28-2003 at 09:24 PM.
 
Old 07-29-2003, 07:48 AM   #3
Exadoor6
LQ Newbie
 
Registered: Jul 2003
Location: Kansas City
Distribution: Red Hat 9
Posts: 3

Original Poster
Rep: Reputation: 0
Hayes?

Where do I find the Hayes commands? Every time I try to use /dev/modem or /dev/ttyS0 I get permission denied, amI doing something wrong?
 
Old 07-29-2003, 09:46 AM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"Where do I find the Hayes commands?"

If you are using wvdial the Hayes commands are in /etc/wvdial.conf.
Here are my modem initialization strings:
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2
Init3 = ATM0
I do not know where they are if you are using kppp. Here's some information on kppp:

http://www.linux.se/doc/HOWTO/PPP-HOWTO/tools.html

Here is an explanation of the Hayes commands:
http://www.wikipedia.org/wiki/Hayes_AT_command_set

"Every time I try to use /dev/modem or /dev/ttyS0 I get permission denied, amI doing something wrong?"

The permissions for /dev/ttyS0 are probably set to where only root can use the modem. Log in as root and use the chmod command to set the permissions on /dev/ttyS0 to 777 which means that any user can use the modem. See: man chmod

/dev/modem is a link to /dev/ttyS0 so its permissions are automatically the same as /dev/ttyS0.
 
  


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
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 12:00 PM
permission ... permissions .... permissions alaios Linux - General 1 05-31-2005 04:16 AM
Permissions jymmi Linux - Newbie 3 04-14-2005 11:43 PM
Permissions help reddog64 Linux - Newbie 1 04-22-2004 05:23 PM
getting a directory's permissions and creating a new one with the same permissions newbie1000101 Programming 1 04-10-2004 12:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:59 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