View previous topic :: View next topic |
Author |
Message |
R!tman Veteran
Joined: 18 Dec 2003 Posts: 1303 Location: Zurich, Switzerland
|
Posted: Fri Jul 09, 2004 8:15 pm Post subject: ssh and permissions |
|
|
Hi all,
I have this permission issue that only root can use ssh. I have to
to enable ssh for users.
Which file controls this setting? I do not want to sent this myself everytime I start the computer.
Is this a udev bug? |
|
Back to top |
|
|
Rav70 l33t
Joined: 11 Feb 2004 Posts: 607 Location: Poland
|
Posted: Fri Jul 09, 2004 8:55 pm Post subject: |
|
|
in
Code: |
/etc/udev/permissions.d/50-udev.permissions
|
find the section:
Code: |
# pty devices
# Set this to 0660 if you only want users belonging to tty group
# to be able to allocate PTYs
ptmx:root:tty:0666
pty[p-za-e][0-9a-f]*:root:tty:0660
tty[p-za-e][0-9a-f]*:root:tty:0660
pty/m*:root:tty:0660
vc/s*:root:tty:0660
|
and either change the perms to 0666 or (my preferred solution) add the relevant users to the 'tty' group.
Regards,
Rav _________________ Q: Why is Microsoft's Product Support a failure?
A: Because Microsoft needs a Support Group instead. |
|
Back to top |
|
|
R!tman Veteran
Joined: 18 Dec 2003 Posts: 1303 Location: Zurich, Switzerland
|
Posted: Mon Jul 12, 2004 2:17 am Post subject: |
|
|
Adding the users to the 'tty' group did it. Thank you! |
|
Back to top |
|
|
scoy Tux's lil' helper
Joined: 21 Jun 2002 Posts: 95
|
Posted: Mon Jul 26, 2004 2:07 am Post subject: some problem, but no fix |
|
|
I'm having permission problems also. They problem is that the group is never set to tty. I have my user in the tty group, but upon reboot I can't ssh until I ...
Code: | # sudo chgrp tty /dev/tty |
... After that I can ssh no problem. I don't want to...
Code: | # sudo chmod 0666 /dev/tty |
... because that's a hack, not a real fix. Here is my permission for udev, let me know what I did wrong.
Code: | $ cat /etc/udev/permissions.d/50-udev.permissions
# /etc/udev/udev.permissions: permission/ownership map for udev
# $Header: /home/cvsroot/gentoo-x86/sys-fs/udev/files/udev.permissions,v 1.3 200 4/01/01 03:41:24 azarah Exp $
# console devices
console:root:tty:0600
tty:root:tty:0666
tty[0-9]*:root:tty:0660
vc/[0-9]*:root:tty:0660
# pty devices
# Set this to 0660 if you only want users belonging to tty group
# to be able to allocate PTYs
ptmx:root:tty:0666
pty[p-za-e][0-9a-f]*:root:tty:0660
tty[p-za-e][0-9a-f]*:root:tty:0660
pty/m*:root:tty:0660
vc/s*:root:tty:0660
....
...
..
.
|
Thanks in advance for any help. |
|
Back to top |
|
|
Fiouz n00b
Joined: 13 Jan 2004 Posts: 25
|
|
Back to top |
|
|
|