* [gentoo-user] Serial modem and permissions problem.
@ 2007-03-02 22:08 Dale
2007-03-03 9:39 ` Mark Kirkwood
2007-03-03 19:49 ` Walter Dnes
0 siblings, 2 replies; 21+ messages in thread
From: Dale @ 2007-03-02 22:08 UTC (permalink / raw
To: gentoo-user
Hi folks,
I had a power failure this morning. I lost my uptime too. :-( Anyway,
I had to shutdown my rig. After the lights came back on I started
having trouble with internet access. I could connect fine with Kppp.
Thing is, it wouldn't let hardly any data transfer. I could get Kopete
to work but that is it. When I rebooted I noticed my UPS which connects
to the serial port was not working either. It was giving a permission
denied error. It was nice to let me know that. ;-)
Here is my question. What are the permissions supposed to be? I have
it set to root:users right now. It was set to root:uucp which was not
working. If someone has a modem and uses dial-up, can you reply with
the output of ls -al /dev/ttyS* if you would. If anybody else knows the
answer, that would be cool too.
Oh, It had been a couple months since I rebooted, anybody know when this
happened? How do you get udev to update after changing the rules, other
than rebooting that is. :/
Thanks.
Dale
:-) :-) :_)
--
www.myspace.com/dalek1967
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Serial modem and permissions problem.
2007-03-02 22:08 [gentoo-user] Serial modem and permissions problem Dale
@ 2007-03-03 9:39 ` Mark Kirkwood
2007-03-03 16:06 ` Dale
2007-03-03 19:49 ` Walter Dnes
1 sibling, 1 reply; 21+ messages in thread
From: Mark Kirkwood @ 2007-03-03 9:39 UTC (permalink / raw
To: gentoo-user
Dale wrote:
>
> Here is my question. What are the permissions supposed to be? I have
> it set to root:users right now. It was set to root:uucp which was not
> working. If someone has a modem and uses dial-up, can you reply with
> the output of ls -al /dev/ttyS* if you would. If anybody else knows the
> answer, that would be cool too.
>
This machine *has* been used for dial-up (but is connected to DSL router
now)
$ ls -al /dev/ttyS*
crw-rw---- 1 root tty 4, 64 Mar 3 19:42 /dev/ttyS0
crw-rw---- 1 root tty 4, 65 Mar 3 19:42 /dev/ttyS1
crw-rw---- 1 root tty 4, 66 Mar 3 19:42 /dev/ttyS2
crw-rw---- 1 root tty 4, 67 Mar 3 19:42 /dev/ttyS3
> Oh, It had been a couple months since I rebooted, anybody know when this
> happened? How do you get udev to update after changing the rules, other
> than rebooting that is. :/
>
No sure on that (maybe look at udevcontrol)... Here's the relevant bit
of my 50-udev.rules FWIW (which is default I think):
$ grep ttyS /etc/udev/rules.d/50-udev.rules
KERNEL=="ttyS[0-9]*", NAME="%k", SYMLINK="tts/%n", GROUP="tty"
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Serial modem and permissions problem.
2007-03-03 9:39 ` Mark Kirkwood
@ 2007-03-03 16:06 ` Dale
0 siblings, 0 replies; 21+ messages in thread
From: Dale @ 2007-03-03 16:06 UTC (permalink / raw
To: gentoo-user
Mark Kirkwood wrote:
> Dale wrote:
>
>>
>> Here is my question. What are the permissions supposed to be? I have
>> it set to root:users right now. It was set to root:uucp which was not
>> working. If someone has a modem and uses dial-up, can you reply with
>> the output of ls -al /dev/ttyS* if you would. If anybody else knows the
>> answer, that would be cool too.
>>
>
> This machine *has* been used for dial-up (but is connected to DSL
> router now)
>
> $ ls -al /dev/ttyS*
> crw-rw---- 1 root tty 4, 64 Mar 3 19:42 /dev/ttyS0
> crw-rw---- 1 root tty 4, 65 Mar 3 19:42 /dev/ttyS1
> crw-rw---- 1 root tty 4, 66 Mar 3 19:42 /dev/ttyS2
> crw-rw---- 1 root tty 4, 67 Mar 3 19:42 /dev/ttyS3
>
>
>> Oh, It had been a couple months since I rebooted, anybody know when this
>> happened? How do you get udev to update after changing the rules, other
>> than rebooting that is. :/
>>
>
> No sure on that (maybe look at udevcontrol)... Here's the relevant bit
> of my 50-udev.rules FWIW (which is default I think):
>
> $ grep ttyS /etc/udev/rules.d/50-udev.rules
> KERNEL=="ttyS[0-9]*", NAME="%k", SYMLINK="tts/%n", GROUP="tty"
Thanks for the info. That seems to work for the UPS. I'll check on the
modem in a bit. I'm not sure when or what changed the group though.
I looked at the udevcontrol man page, I didn't see anything in there
about restarting or reloading the rules. Surely they have a way to do
that. I can't unplug and plug back up the serial port.
Anybody else know how to "reset" udev??
Thanks again.
Dale
:-) :-) :-) :-)
--
www.myspace.com/dalek1967
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Serial modem and permissions problem.
2007-03-02 22:08 [gentoo-user] Serial modem and permissions problem Dale
2007-03-03 9:39 ` Mark Kirkwood
@ 2007-03-03 19:49 ` Walter Dnes
2007-03-03 23:37 ` Dale
1 sibling, 1 reply; 21+ messages in thread
From: Walter Dnes @ 2007-03-03 19:49 UTC (permalink / raw
To: gentoo-user
On Fri, Mar 02, 2007 at 04:08:59PM -0600, Dale wrote
> Here is my question. What are the permissions supposed to be?
> I have it set to root:users right now. It was set to root:uucp
> which was not working.
Did you try making your user a member of the "uucp" and "dip" groups?
--
Walter Dnes <waltdnes@waltdnes.org> In linux /sbin/init is Job #1
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Serial modem and permissions problem.
2007-03-03 19:49 ` Walter Dnes
@ 2007-03-03 23:37 ` Dale
2007-03-04 0:45 ` Mick
0 siblings, 1 reply; 21+ messages in thread
From: Dale @ 2007-03-03 23:37 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 931 bytes --]
Walter Dnes wrote:
> On Fri, Mar 02, 2007 at 04:08:59PM -0600, Dale wrote
>
>
>> Here is my question. What are the permissions supposed to be?
>> I have it set to root:users right now. It was set to root:uucp
>> which was not working.
>>
>
> Did you try making your user a member of the "uucp" and "dip" groups?
>
>
Well, to be honest, I'm not even sure what uucp group is, dip either. I
never heard of that one. I get the tty one though. It's the terminal. LOL
I suspect something changed with the grouping and I just didn't know
it. It was likely one of those messages in a compile that went by and I
didn't see it. It may be for the better, mor secure or something, but I
just missed it.
Now that you mention it, I think I have to be a member of that group to
be able to fax too. May give that a try. May fix two things.
Thanks for the info.
Dale
:-) :-) :-) :-)
--
www.myspace.com/dalek1967
[-- Attachment #2: Type: text/html, Size: 1561 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Serial modem and permissions problem.
2007-03-03 23:37 ` Dale
@ 2007-03-04 0:45 ` Mick
2007-03-04 1:08 ` Dale
0 siblings, 1 reply; 21+ messages in thread
From: Mick @ 2007-03-04 0:45 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 901 bytes --]
On Saturday 03 March 2007 23:37, Dale wrote:
> I suspect something changed with the grouping and I just didn't know
> it. It was likely one of those messages in a compile that went by and I
> didn't see it. It may be for the better, mor secure or something, but I
> just missed it.
>
> Now that you mention it, I think I have to be a member of that group to
> be able to fax too. May give that a try. May fix two things.
>
> Thanks for the info.
Hmm, this is what I am getting on a x86 build.
# ls -al /dev/ttyS*
crw-rw---- 1 root uucp 4, 64 Mar 3 22:09 /dev/ttyS0
crw-rw---- 1 root uucp 4, 65 Mar 3 22:09 /dev/ttyS1
crw-rw---- 1 root uucp 4, 66 Mar 3 22:09 /dev/ttyS2
crw-rw---- 1 root uucp 4, 67 Mar 3 22:09 /dev/ttyS3
BTW, I am a member of the uucp group, but can't remember if I ever added
myself to it manually:
uucp:x:14:uucp,michael
--
Regards,
Mick
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Serial modem and permissions problem.
2007-03-04 0:45 ` Mick
@ 2007-03-04 1:08 ` Dale
2007-03-04 1:47 ` Mark Kirkwood
0 siblings, 1 reply; 21+ messages in thread
From: Dale @ 2007-03-04 1:08 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1513 bytes --]
Mick wrote:
> On Saturday 03 March 2007 23:37, Dale wrote:
>
>
>> I suspect something changed with the grouping and I just didn't know
>> it. It was likely one of those messages in a compile that went by and I
>> didn't see it. It may be for the better, mor secure or something, but I
>> just missed it.
>>
>> Now that you mention it, I think I have to be a member of that group to
>> be able to fax too. May give that a try. May fix two things.
>>
>> Thanks for the info.
>>
>
> Hmm, this is what I am getting on a x86 build.
>
> # ls -al /dev/ttyS*
> crw-rw---- 1 root uucp 4, 64 Mar 3 22:09 /dev/ttyS0
> crw-rw---- 1 root uucp 4, 65 Mar 3 22:09 /dev/ttyS1
> crw-rw---- 1 root uucp 4, 66 Mar 3 22:09 /dev/ttyS2
> crw-rw---- 1 root uucp 4, 67 Mar 3 22:09 /dev/ttyS3
>
> BTW, I am a member of the uucp group, but can't remember if I ever added
> myself to it manually:
>
> uucp:x:14:uucp,michael
>
>
There have been a lot of changes lately. I think this is just one of
them. I may just change it back to uucp and add myself to the group.
I'm not sure about how that will affect my UPS that connects to the
serial port though. It didn't like the uucp group either. We may be
playing ring around the group here. :/
I still haven't tried the others though. I'm trying to give everyone a
chance to reply and see what all options there are available. ;-)
Thanks for the info. At least mine wasn't the only one that got changed.
Dale
:-) :-) :-) :-)
--
www.myspace.com/dalek1967
[-- Attachment #2: Type: text/html, Size: 2109 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Serial modem and permissions problem.
2007-03-04 1:08 ` Dale
@ 2007-03-04 1:47 ` Mark Kirkwood
2007-03-04 2:09 ` Dale
0 siblings, 1 reply; 21+ messages in thread
From: Mark Kirkwood @ 2007-03-04 1:47 UTC (permalink / raw
To: gentoo-user
Dale wrote:
> Mick wrote:
>>
>>
>> Hmm, this is what I am getting on a x86 build.
>>
>> # ls -al /dev/ttyS*
>> crw-rw---- 1 root uucp 4, 64 Mar 3 22:09 /dev/ttyS0
>> crw-rw---- 1 root uucp 4, 65 Mar 3 22:09 /dev/ttyS1
>> crw-rw---- 1 root uucp 4, 66 Mar 3 22:09 /dev/ttyS2
>> crw-rw---- 1 root uucp 4, 67 Mar 3 22:09 /dev/ttyS3
>>
>> BTW, I am a member of the uucp group, but can't remember if I ever added
>> myself to it manually:
>>
>> uucp:x:14:uucp,michael
>>
>>
>
> There have been a lot of changes lately.
I'm updating today, so will let you know if my /dev/ttyS* change group
ownership thereafter.
Cheers
Mark
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Serial modem and permissions problem.
2007-03-04 1:47 ` Mark Kirkwood
@ 2007-03-04 2:09 ` Dale
2007-03-04 3:01 ` Mark Kirkwood
0 siblings, 1 reply; 21+ messages in thread
From: Dale @ 2007-03-04 2:09 UTC (permalink / raw
To: gentoo-user
Mark Kirkwood wrote:
> Dale wrote:
>> Mick wrote:
>
>>>
>>> Hmm, this is what I am getting on a x86 build.
>>>
>>> # ls -al /dev/ttyS*
>>> crw-rw---- 1 root uucp 4, 64 Mar 3 22:09 /dev/ttyS0
>>> crw-rw---- 1 root uucp 4, 65 Mar 3 22:09 /dev/ttyS1
>>> crw-rw---- 1 root uucp 4, 66 Mar 3 22:09 /dev/ttyS2
>>> crw-rw---- 1 root uucp 4, 67 Mar 3 22:09 /dev/ttyS3
>>>
>>> BTW, I am a member of the uucp group, but can't remember if I ever
>>> added myself to it manually:
>>>
>>> uucp:x:14:uucp,michael
>>>
>>>
>>
>> There have been a lot of changes lately.
>
> I'm updating today, so will let you know if my /dev/ttyS* change group
> ownership thereafter.
>
> Cheers
>
> Mark
If you can, check to see if udev was upgraded and there was a notice
that there are group changes. I would think udev would be what was
changed. I'm curious to see your reply though.
Thanks
Dale
:-) :-) :-)
--
www.myspace.com/dalek1967
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Serial modem and permissions problem.
2007-03-04 2:09 ` Dale
@ 2007-03-04 3:01 ` Mark Kirkwood
2007-03-04 6:30 ` Dale
0 siblings, 1 reply; 21+ messages in thread
From: Mark Kirkwood @ 2007-03-04 3:01 UTC (permalink / raw
To: gentoo-user
Dale wrote:
> Mark Kirkwood wrote:
>> Dale wrote:
>>> Mick wrote:
>>>>
>>>> Hmm, this is what I am getting on a x86 build.
>>>>
>>>> # ls -al /dev/ttyS*
>>>> crw-rw---- 1 root uucp 4, 64 Mar 3 22:09 /dev/ttyS0
>>>> crw-rw---- 1 root uucp 4, 65 Mar 3 22:09 /dev/ttyS1
>>>> crw-rw---- 1 root uucp 4, 66 Mar 3 22:09 /dev/ttyS2
>>>> crw-rw---- 1 root uucp 4, 67 Mar 3 22:09 /dev/ttyS3
>>>>
>>>> BTW, I am a member of the uucp group, but can't remember if I ever
>>>> added myself to it manually:
>>>>
>>>> uucp:x:14:uucp,michael
>>>>
>>>>
>>> There have been a lot of changes lately.
>> I'm updating today, so will let you know if my /dev/ttyS* change group
>> ownership thereafter.
> If you can, check to see if udev was upgraded and there was a notice
> that there are group changes. I would think udev would be what was
> changed. I'm curious to see your reply though.
>
Ok - here is the state after the emerge (recall group *was* tty):
$ ls -l /dev/ttyS*
crw-rw---- 1 root uucp 4, 64 Mar 4 15:53 /dev/ttyS0
crw-rw---- 1 root uucp 4, 65 Mar 4 15:53 /dev/ttyS1
crw-rw---- 1 root uucp 4, 66 Mar 4 15:53 /dev/ttyS2
crw-rw---- 1 root uucp 4, 67 Mar 4 15:53 /dev/ttyS3
and /etc/udev/rules.d/50-udev.rules has been updated in the emerge to
make this ownership change:
$ grep ttyS 50-udev.rules
KERNEL=="ttyS[0-9]*", NAME="%k", SYMLINK="tts/%n", GROUP="uucp",
MODE="0660"
I didn't see any notice, it just gets processed when doing etc-update.
Probably worth eyeballing any changes to 50-udev.rules!
So looks like you need to be in the uucp group to dial-up now.
Cheers
Mark
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Serial modem and permissions problem.
2007-03-04 3:01 ` Mark Kirkwood
@ 2007-03-04 6:30 ` Dale
2007-03-04 20:18 ` Dan Farrell
0 siblings, 1 reply; 21+ messages in thread
From: Dale @ 2007-03-04 6:30 UTC (permalink / raw
To: gentoo-user
Mark Kirkwood wrote:
> Dale wrote:
>
>> If you can, check to see if udev was upgraded and there was a notice
>> that there are group changes. I would think udev would be what was
>> changed. I'm curious to see your reply though.
>
> Ok - here is the state after the emerge (recall group *was* tty):
>
> $ ls -l /dev/ttyS*
> crw-rw---- 1 root uucp 4, 64 Mar 4 15:53 /dev/ttyS0
> crw-rw---- 1 root uucp 4, 65 Mar 4 15:53 /dev/ttyS1
> crw-rw---- 1 root uucp 4, 66 Mar 4 15:53 /dev/ttyS2
> crw-rw---- 1 root uucp 4, 67 Mar 4 15:53 /dev/ttyS3
>
> and /etc/udev/rules.d/50-udev.rules has been updated in the emerge to
> make this ownership change:
>
> $ grep ttyS 50-udev.rules
> KERNEL=="ttyS[0-9]*", NAME="%k", SYMLINK="tts/%n", GROUP="uucp",
> MODE="0660"
>
> I didn't see any notice, it just gets processed when doing etc-update.
> Probably worth eyeballing any changes to 50-udev.rules!
>
>
> So looks like you need to be in the uucp group to dial-up now.
>
> Cheers
>
> Mark
Hmmm, I wonder why that was changed? I did a google search for uucp and
group and it was interesting. It seems this is the norm now. When I
added fax to the search, it seems that will solve my problem of having
to fax something as root instead of a user. ;-) Learn something every
day. I just wonder about my UPS and how it is going to like this
change. Add nut to the group to I guess.
Well, now we know huh?
Thanks for the help. I better watch the rules update next time.
Dale
:-) :-) :-) :-)
--
www.myspace.com/dalek1967
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Serial modem and permissions problem.
2007-03-04 6:30 ` Dale
@ 2007-03-04 20:18 ` Dan Farrell
2007-03-04 21:48 ` Dale
2007-03-05 3:57 ` Walter Dnes
0 siblings, 2 replies; 21+ messages in thread
From: Dan Farrell @ 2007-03-04 20:18 UTC (permalink / raw
To: gentoo-user
On Sun, 04 Mar 2007 00:30:23 -0600
Dale <dalek@exceedtech.net> wrote:
> Mark Kirkwood wrote:
> > Dale wrote:
> >
> >> If you can, check to see if udev was upgraded and there was a
> >> notice that there are group changes. I would think udev would be
> >> what was changed. I'm curious to see your reply though.
> >
> > Ok - here is the state after the emerge (recall group *was* tty):
> >
> > $ ls -l /dev/ttyS*
> > crw-rw---- 1 root uucp 4, 64 Mar 4 15:53 /dev/ttyS0
> > crw-rw---- 1 root uucp 4, 65 Mar 4 15:53 /dev/ttyS1
> > crw-rw---- 1 root uucp 4, 66 Mar 4 15:53 /dev/ttyS2
> > crw-rw---- 1 root uucp 4, 67 Mar 4 15:53 /dev/ttyS3
> >
> > and /etc/udev/rules.d/50-udev.rules has been updated in the emerge
> > to make this ownership change:
> >
> > $ grep ttyS 50-udev.rules
> > KERNEL=="ttyS[0-9]*", NAME="%k", SYMLINK="tts/%n", GROUP="uucp",
> > MODE="0660"
> >
> > I didn't see any notice, it just gets processed when doing
> > etc-update. Probably worth eyeballing any changes to 50-udev.rules!
> >
> >
> > So looks like you need to be in the uucp group to dial-up now.
> >
> > Cheers
> >
> > Mark
>
> Hmmm, I wonder why that was changed? I did a google search for uucp
> and group and it was interesting. It seems this is the norm now.
> When I added fax to the search, it seems that will solve my problem
> of having to fax something as root instead of a user. ;-) Learn
> something every day. I just wonder about my UPS and how it is going
> to like this change. Add nut to the group to I guess.
>
> Well, now we know huh?
>
> Thanks for the help. I better watch the rules update next time.
>
> Dale
>
> :-) :-) :-) :-)
>
FWIW, it was kind of a PITA to set up dialup in a secure way for
multiple users to use with traditional UNIX permissioning. The
reorganization of groups, if it deals with that ugliness (visit
http://gentoo-wiki.com/HOWTO_Setup_a_Dialup_Connection#Winmodems_with_Lucent_Apollo_.28ISA.29_and_Mars_.28PCI.29_chipsets
to see for yourself what I mean) I say, it's worth a bit of
reorganization of users.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Serial modem and permissions problem.
2007-03-04 20:18 ` Dan Farrell
@ 2007-03-04 21:48 ` Dale
2007-03-07 3:47 ` Dale
2007-03-05 3:57 ` Walter Dnes
1 sibling, 1 reply; 21+ messages in thread
From: Dale @ 2007-03-04 21:48 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 2018 bytes --]
Dan Farrell wrote:
> On Sun, 04 Mar 2007 00:30:23 -0600
> Dale <dalek@exceedtech.net> wrote:
>
>
>> Hmmm, I wonder why that was changed? I did a google search for uucp
>> and group and it was interesting. It seems this is the norm now.
>> When I added fax to the search, it seems that will solve my problem
>> of having to fax something as root instead of a user. ;-) Learn
>> something every day. I just wonder about my UPS and how it is going
>> to like this change. Add nut to the group to I guess.
>>
>> Well, now we know huh?
>>
>> Thanks for the help. I better watch the rules update next time.
>>
>> Dale
>>
>> :-) :-) :-) :-)
>>
>>
> FWIW, it was kind of a PITA to set up dialup in a secure way for
> multiple users to use with traditional UNIX permissioning. The
> reorganization of groups, if it deals with that ugliness (visit
> http://gentoo-wiki.com/HOWTO_Setup_a_Dialup_Connection#Winmodems_with_Lucent_Apollo_.28ISA.29_and_Mars_.28PCI.29_chipsets
> to see for yourself what I mean) I say, it's worth a bit of
> reorganization of users.
>
I also went diggin in the groups file, there is a dialout group in there
that *should* address this. I mentioned in a early reply that this was
likely a security thing. Your link seems to show that it is that. What
I can't figure out is why no one warned us? I only use Linux and only
have one puter that connects to the net so if I didn't know to check the
permissions of the modem, I could have been stuck. Plus, I did get that
error about my UPS. That was really helpful there. It actually showed
me the permissions were wrong and I noticed they were changed from what
they used to be.
I also notice there is no mention of the uucp group in the link. It
does mention using the group ppp but not uucp. Anyway, I plan to watch
those udev config updates closer next time. They have always worked
before but I learned that *may* not always be true.
Thanks for the info.
Dale
:-) :-) :-) :-)
--
www.myspace.com/dalek1967
[-- Attachment #2: Type: text/html, Size: 2856 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Serial modem and permissions problem.
2007-03-04 20:18 ` Dan Farrell
2007-03-04 21:48 ` Dale
@ 2007-03-05 3:57 ` Walter Dnes
1 sibling, 0 replies; 21+ messages in thread
From: Walter Dnes @ 2007-03-05 3:57 UTC (permalink / raw
To: gentoo-user
On Sun, Mar 04, 2007 at 02:18:41PM -0600, Dan Farrell wrote
> FWIW, it was kind of a PITA to set up dialup in a secure way for
> multiple users to use with traditional UNIX permissioning.
I'm the only person on my machine, but things get complicated because
the dialup is emergency backup for my ADSL connection. I can't get the
two connections to co-exist peacefully. Furthermore, I use different
ISPs for broadband and dialup, because problems at an ISP might take
down both broadband and dialup access. That means that I have to copy
over a different /etc/ssmtp/ssmtp.conf. So my ~/bin/dialup script is...
#!/bin/bash
/usr/bin/sudo /sbin/ifconfig eth0 down
/usr/bin/sudo /usr/bin/cp -f /etc/ssmtp/295.ssmtp.conf /etc/ssmtp/ssmtp.conf
/usr/bin/sudo /usr/sbin/pon 295caext
The 3 commands...
1) tear down eth0
2) copy in the appropriate ssmtp.conf for my dialup ISP
3) run pon to actually dialup
My ~/bin/dialdown (hang up dialup, and restore ADSL) script is
#!/bin/bash
/usr/bin/sudo /usr/sbin/poff
/usr/bin/sudo /usr/bin/cp -f /etc/ssmtp/istop.ssmtp.conf /etc/ssmtp/ssmtp.conf
/usr/bin/sudo /etc/init.d/net.eth0 restart
1) hang up the dialup connection
2) copy in the appropriate ssmtp.conf for my ADSL ISP
3) bring up eth0
To enable doing this without passwords, my /etc/sudoers contains...
waltdnes m3000 = (root) NOPASSWD: /sbin/ifconfig eth0 down
waltdnes m3000 = (root) NOPASSWD: /usr/bin/cp -f /etc/ssmtp/295.ssmtp.conf /etc/ssmtp/ssmtp.conf
waltdnes m3000 = (root) NOPASSWD: /usr/sbin/pon 295caext
waltdnes m3000 = (root) NOPASSWD: /usr/sbin/poff
waltdnes m3000 = (root) NOPASSWD: /usr/bin/cp -f /etc/ssmtp/istop.ssmtp.conf /etc/ssmtp/ssmtp.conf
waltdnes m3000 = (root) NOPASSWD: /etc/init.d/net.eth0 restart
--
Walter Dnes <waltdnes@waltdnes.org> In linux /sbin/init is Job #1
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Serial modem and permissions problem.
2007-03-04 21:48 ` Dale
@ 2007-03-07 3:47 ` Dale
2007-03-07 5:52 ` Dale
2007-03-07 10:31 ` Neil Bothwick
0 siblings, 2 replies; 21+ messages in thread
From: Dale @ 2007-03-07 3:47 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 2341 bytes --]
Dale wrote:
> I also went diggin in the groups file, there is a dialout group in
> there that *should* address this. I mentioned in a early reply that
> this was likely a security thing. Your link seems to show that it is
> that. What I can't figure out is why no one warned us? I only use
> Linux and only have one puter that connects to the net so if I didn't
> know to check the permissions of the modem, I could have been stuck.
> Plus, I did get that error about my UPS. That was really helpful
> there. It actually showed me the permissions were wrong and I noticed
> they were changed from what they used to be.
>
> I also notice there is no mention of the uucp group in the link. It
> does mention using the group ppp but not uucp. Anyway, I plan to
> watch those udev config updates closer next time. They have always
> worked before but I learned that *may* not always be true.
>
> Thanks for the info.
>
> Dale
>
> :-) :-) :-) :-)
>
> --
> www.myspace.com/dalek1967
>
OK. Here's my update. I changed the config file, the 50-udev.rules
file, back to the way it was when it was updated. I then added myself
to the uucp group and rebooted. Well, my UPS didn't like that one bit.
So I added nut to the uucp group too. Then I rebooted again.
Everything *appears* to be working fine. Sorry for all the rebooting
but they are serial ports.
Why did I decide to go and do all this right now. Here is the funny
part. Kppp could access the modem, it could tell it to dial out, it
could connect, even get the DNS servers, but it was NOT going to send
data or accept data like it should. It was like spitting on a four
alarm fire. It would send some but it was just a little bit at a time.
Kopete worked fine though. Go figure. All that was run as a normal
user. To test that this was permission related, I opened a root Konsole
and used wvdial to connect with. The pages loaded like they should when
connected that way. I knew then it was either Kppp or I still had some
lingering permission issues. I suspected the later.
Lesson of all this, watch those udev updates. They may work 99% of the
time but that 1% can drive you nuts.
All this because my power went out for about 2 hours. Maybe I need a
bigger UPS. ;-)
Thanks for all the help.
Dale
:D :D :D :D :D
--
www.myspace.com/dalek1967
[-- Attachment #2: Type: text/html, Size: 3261 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Serial modem and permissions problem.
2007-03-07 3:47 ` Dale
@ 2007-03-07 5:52 ` Dale
2007-03-07 10:31 ` Neil Bothwick
1 sibling, 0 replies; 21+ messages in thread
From: Dale @ 2007-03-07 5:52 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1749 bytes --]
Dale wrote:
> OK. Here's my update. I changed the config file, the 50-udev.rules
> file, back to the way it was when it was updated. I then added myself
> to the uucp group and rebooted. Well, my UPS didn't like that one
> bit. So I added nut to the uucp group too. Then I rebooted again.
> Everything *appears* to be working fine. Sorry for all the rebooting
> but they are serial ports.
>
> Why did I decide to go and do all this right now. Here is the funny
> part. Kppp could access the modem, it could tell it to dial out, it
> could connect, even get the DNS servers, but it was NOT going to send
> data or accept data like it should. It was like spitting on a four
> alarm fire. It would send some but it was just a little bit at a
> time. Kopete worked fine though. Go figure. All that was run as a
> normal user. To test that this was permission related, I opened a
> root Konsole and used wvdial to connect with. The pages loaded like
> they should when connected that way. I knew then it was either Kppp
> or I still had some lingering permission issues. I suspected the later.
>
> Lesson of all this, watch those udev updates. They may work 99% of
> the time but that 1% can drive you nuts.
>
> All this because my power went out for about 2 hours. Maybe I need a
> bigger UPS. ;-)
>
> Thanks for all the help.
>
> Dale
>
> :D :D :D :D :D
>
>
>
> --
> www.myspace.com/dalek1967
>
One more little update. After a while I starting seeing the same thing
again. I then remerged Kppp and it has been working for a while now.
I'm not sure what change that would have made though. Just thought I
would mention it in case someone else has the same issue.
Dale
:-) :-) :-) :-)
--
www.myspace.com/dalek1967
[-- Attachment #2: Type: text/html, Size: 2613 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Serial modem and permissions problem.
2007-03-07 3:47 ` Dale
2007-03-07 5:52 ` Dale
@ 2007-03-07 10:31 ` Neil Bothwick
2007-03-07 19:06 ` Dale
1 sibling, 1 reply; 21+ messages in thread
From: Neil Bothwick @ 2007-03-07 10:31 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 855 bytes --]
On Tue, 06 Mar 2007 21:47:40 -0600, Dale wrote:
> OK. Here's my update. I changed the config file, the 50-udev.rules
> file, back to the way it was when it was updated.
The next time you update udev, your changes will be overwritten. Changes
should go in 10-local.rules.
> I then added myself
> to the uucp group and rebooted. Well, my UPS didn't like that one bit.
> So I added nut to the uucp group too. Then I rebooted again.
> Everything *appears* to be working fine. Sorry for all the rebooting
> but they are serial ports.
If your serial port driver is built as a module, you can avoid the reboot
by rmmodding and modprobing the driver. The second reboot was unnecessary
anyway, restarting nut should have picked up the group changes.
--
Neil Bothwick
Tribble math: * + * = ***********************************
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Serial modem and permissions problem.
2007-03-07 10:31 ` Neil Bothwick
@ 2007-03-07 19:06 ` Dale
2007-03-07 20:31 ` Neil Bothwick
0 siblings, 1 reply; 21+ messages in thread
From: Dale @ 2007-03-07 19:06 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1281 bytes --]
Neil Bothwick wrote:
> On Tue, 06 Mar 2007 21:47:40 -0600, Dale wrote:
>
>
>> OK. Here's my update. I changed the config file, the 50-udev.rules
>> file, back to the way it was when it was updated.
>>
>
> The next time you update udev, your changes will be overwritten. Changes
> should go in 10-local.rules.
>
Thanks. I forgot about that little detail. I better find a how to
somewhere.
>
>> I then added myself
>> to the uucp group and rebooted. Well, my UPS didn't like that one bit.
>> So I added nut to the uucp group too. Then I rebooted again.
>> Everything *appears* to be working fine. Sorry for all the rebooting
>> but they are serial ports.
>>
>
> If your serial port driver is built as a module, you can avoid the reboot
> by rmmodding and modprobing the driver. The second reboot was unnecessary
> anyway, restarting nut should have picked up the group changes.
>
>
>
The only module I have is nvidia. I build everything into my kernel
that I can. I was hoping there was a way to sort of "restart" or
"reload" udev but I couldn't find one and nobody posted one either. I
guess there is now two reasons you may have to reboot.
So far, it is working fine though.
Thanks
Dale
:-) :-) :-) :-)
--
www.myspace.com/dalek1967
[-- Attachment #2: Type: text/html, Size: 2095 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Serial modem and permissions problem.
2007-03-07 19:06 ` Dale
@ 2007-03-07 20:31 ` Neil Bothwick
2007-03-07 20:43 ` Bo Ørsted Andresen
2007-03-07 20:44 ` Dale
0 siblings, 2 replies; 21+ messages in thread
From: Neil Bothwick @ 2007-03-07 20:31 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1152 bytes --]
On Wed, 07 Mar 2007 13:06:23 -0600, Dale wrote:
> > The next time you update udev, your changes will be overwritten.
> > Changes should go in 10-local.rules.
> Thanks. I forgot about that little detail. I better find a how to
> somewhere.
http://www.reactivated.net/udevrules.php
> > If your serial port driver is built as a module, you can avoid the
> > reboot by rmmodding and modprobing the driver. The second reboot was
> > unnecessary anyway, restarting nut should have picked up the group
> > changes.
> The only module I have is nvidia. I build everything into my kernel
> that I can. I was hoping there was a way to sort of "restart" or
> "reload" udev but I couldn't find one and nobody posted one either. I
> guess there is now two reasons you may have to reboot.
Or another reason to use modules. You could try using udevstart to
repopulate /dev.
--
Neil Bothwick
I have a spelling checker, it came with my Pea See;
It helps me too correct Miss Steaks eye mite knot sea.
I ran these versus threw it, yew mae bee pleased too no
Its word prefect in every weight; my spell cheque tolled me sew!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Serial modem and permissions problem.
2007-03-07 20:31 ` Neil Bothwick
@ 2007-03-07 20:43 ` Bo Ørsted Andresen
2007-03-07 20:44 ` Dale
1 sibling, 0 replies; 21+ messages in thread
From: Bo Ørsted Andresen @ 2007-03-07 20:43 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 540 bytes --]
On Wednesday 07 March 2007 21:31:49 Neil Bothwick wrote:
> > The only module I have is nvidia. I build everything into my kernel
> > that I can. I was hoping there was a way to sort of "restart" or
> > "reload" udev but I couldn't find one and nobody posted one either. I
> > guess there is now two reasons you may have to reboot.
>
> Or another reason to use modules. You could try using udevstart to
> repopulate /dev
I believe it's udevtrigger rather than udevstart that should be used
nowadays...
--
Bo Andresen
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Serial modem and permissions problem.
2007-03-07 20:31 ` Neil Bothwick
2007-03-07 20:43 ` Bo Ørsted Andresen
@ 2007-03-07 20:44 ` Dale
1 sibling, 0 replies; 21+ messages in thread
From: Dale @ 2007-03-07 20:44 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1408 bytes --]
Neil Bothwick wrote:
> On Wed, 07 Mar 2007 13:06:23 -0600, Dale wrote:
>
>
>>> The next time you update udev, your changes will be overwritten.
>>> Changes should go in 10-local.rules.
>>>
>
>
>
>> Thanks. I forgot about that little detail. I better find a how to
>> somewhere.
>>
>
> http://www.reactivated.net/udevrules.php
>
>
>>> If your serial port driver is built as a module, you can avoid the
>>> reboot by rmmodding and modprobing the driver. The second reboot was
>>> unnecessary anyway, restarting nut should have picked up the group
>>> changes.
>>>
>
>
>> The only module I have is nvidia. I build everything into my kernel
>> that I can. I was hoping there was a way to sort of "restart" or
>> "reload" udev but I couldn't find one and nobody posted one either. I
>> guess there is now two reasons you may have to reboot.
>>
>
> Or another reason to use modules. You could try using udevstart to
> repopulate /dev.
>
>
>
I found that link when I was googling too. You know, udevstart didn't
change the permissions when I ran it. Strange. Anyway, I looked, since
I put it back the way it was updated to, it shouldn't change anything,
unless they change the group again anyway. I put it back to uucp like
they had it. So far so good. My modem works, my UPS is happy, I'm
happy too.
Thanks.
Dale
:-) :-) :-)
--
www.myspace.com/dalek1967
[-- Attachment #2: Type: text/html, Size: 2417 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
end of thread, other threads:[~2007-03-07 20:52 UTC | newest]
Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-02 22:08 [gentoo-user] Serial modem and permissions problem Dale
2007-03-03 9:39 ` Mark Kirkwood
2007-03-03 16:06 ` Dale
2007-03-03 19:49 ` Walter Dnes
2007-03-03 23:37 ` Dale
2007-03-04 0:45 ` Mick
2007-03-04 1:08 ` Dale
2007-03-04 1:47 ` Mark Kirkwood
2007-03-04 2:09 ` Dale
2007-03-04 3:01 ` Mark Kirkwood
2007-03-04 6:30 ` Dale
2007-03-04 20:18 ` Dan Farrell
2007-03-04 21:48 ` Dale
2007-03-07 3:47 ` Dale
2007-03-07 5:52 ` Dale
2007-03-07 10:31 ` Neil Bothwick
2007-03-07 19:06 ` Dale
2007-03-07 20:31 ` Neil Bothwick
2007-03-07 20:43 ` Bo Ørsted Andresen
2007-03-07 20:44 ` Dale
2007-03-05 3:57 ` Walter Dnes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox