Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ssh and permissions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
R!tman
Veteran
Veteran


Joined: 18 Dec 2003
Posts: 1303
Location: Zurich, Switzerland

PostPosted: Fri Jul 09, 2004 8:15 pm    Post subject: ssh and permissions Reply with quote

Hi all,

I have this permission issue that only root can use ssh. I have to
Code:
chmod 666 /dev/tty

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
View user's profile Send private message
Rav70
l33t
l33t


Joined: 11 Feb 2004
Posts: 607
Location: Poland

PostPosted: Fri Jul 09, 2004 8:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
R!tman
Veteran
Veteran


Joined: 18 Dec 2003
Posts: 1303
Location: Zurich, Switzerland

PostPosted: Mon Jul 12, 2004 2:17 am    Post subject: Reply with quote

Adding the users to the 'tty' group did it. Thank you!
Back to top
View user's profile Send private message
scoy
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jun 2002
Posts: 95

PostPosted: Mon Jul 26, 2004 2:07 am    Post subject: some problem, but no fix Reply with quote

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
View user's profile Send private message
Fiouz
n00b
n00b


Joined: 13 Jan 2004
Posts: 25

PostPosted: Wed Jul 28, 2004 5:28 pm    Post subject: Reply with quote

This problem seems resolved in udev-027 :
https://bugs.gentoo.org/show_bug.cgi?id=53292
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum