summaryrefslogtreecommitdiffstats
path: root/term-utils
diff options
context:
space:
mode:
authorKarel Zak2013-01-02 08:23:00 +0100
committerKarel Zak2013-01-02 08:27:32 +0100
commit91984e938e6f3fa3b5c6c98d6fd6021fff84ebdb (patch)
tree8cf6659415f1fa5ef4ca8b744b928b71a613a58f /term-utils
parentbuild-sys: remove consoles.h (diff)
downloadkernel-qcow2-util-linux-91984e938e6f3fa3b5c6c98d6fd6021fff84ebdb.tar.gz
kernel-qcow2-util-linux-91984e938e6f3fa3b5c6c98d6fd6021fff84ebdb.tar.xz
kernel-qcow2-util-linux-91984e938e6f3fa3b5c6c98d6fd6021fff84ebdb.zip
agetty: replace perms 660 to 620
... the default is root:tty 620 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'term-utils')
-rw-r--r--term-utils/agetty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/term-utils/agetty.c b/term-utils/agetty.c
index b50644cac..c9163caa6 100644
--- a/term-utils/agetty.c
+++ b/term-utils/agetty.c
@@ -903,7 +903,7 @@ static void open_tty(char *tty, struct termios *tp, struct options *op)
* Linux login(1) will change tty permissions. Use root owner and group
* with permission -rw------- for the period between getty and login.
*/
- if (chown(buf, 0, gid) || chmod(buf, (gid ? 0660 : 0600))) {
+ if (chown(buf, 0, gid) || chmod(buf, (gid ? 0620 : 0600))) {
if (errno == EROFS)
log_warn("%s: %m", buf);
else