Re: /dev/tty problem

Erik Svensson <[email protected]>
Newsgroups gmane.linux.debian.user.swedish
Message-ID <[email protected]>
Den 2015-12-25 kl. 21:29, skrev Michael Kjörling:
> On 25 Dec 2015 20:20 +0000, from [email protected] (Michael Kjörling):
>> Jag skulle börja med att prova något i stil med:
> Självklart förutsatt att du redan tittat i systemets loggfiler och det
> inte gav något av värde. Borde ha nämnt det som ett förbehåll, men då
> gör jag det nu istället. :-)
>
Inget konstigt i systemloggen.

strace -v /etc/init.d/samba start 2>&1 | grep -C 200 --color "textual
authentication agent:"
ger inget ut.

strastrace -v /etc/init.d/samba start, ger
execve("/etc/init.d/samba", ["/etc/init.d/samba", "start"],
["SHELL=/bin/bash", "TERM=xterm", "USER=root",
"PATH=/usr/local/sbin:/usr/local/"..., "MAIL=/var/mail/root",
"PWD=/root", "LANG=sv_SE.UTF-8", "HOME=/root", "SHLVL=1",
"LOGNAME=root", "DISPLAY=:0.0", "COLORTERM=xfce4-terminal",
"_=/usr/bin/strace"]) = 0
brk(0)                                  = 0x562f3b48a000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x7f029b9c5000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_dev=makedev(8, 1), st_ino=11022520, st_mode=S_IFREG|0644,
st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=200,
st_size=100996, st_atime=2015/12/25-20:30:52,
st_mtime=2015/12/25-20:30:51, st_ctime=2015/12/25-20:30:51}) = 0
mmap(NULL, 100996, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f029b9ac000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3,
"\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\t\2\0\0\0\0\0"...,
832) = 832
fstat(3, {st_dev=makedev(8, 1), st_ino=11536536, st_mode=S_IFREG|0755,
st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=3344,
st_size=1710168, st_atime=2015/12/25-13:48:41,
st_mtime=2015/12/11-00:41:54, st_ctime=2015/12/17-13:48:01}) = 0
mmap(NULL, 3817216, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x7f029b402000
mprotect(0x7f029b59c000, 2097152, PROT_NONE) = 0
mmap(0x7f029b79c000, 24576, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19a000) = 0x7f029b79c000
mmap(0x7f029b7a2000, 16128, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f029b7a2000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x7f029b9ab000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x7f029b9aa000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x7f029b9a9000
arch_prctl(ARCH_SET_FS, 0x7f029b9aa700) = 0
mprotect(0x7f029b79c000, 16384, PROT_READ) = 0
mprotect(0x562f399de000, 12288, PROT_READ) = 0
mprotect(0x7f029b9c7000, 4096, PROT_READ) = 0
munmap(0x7f029b9ac000, 100996)          = 0
getpid()                                = 6329
rt_sigaction(SIGCHLD, {0x562f397d4fd0, ~[RTMIN RT_1], SA_RESTORER,
0x7f029b4356e0}, NULL, 8) = 0
geteuid()                               = 0
brk(0)                                  = 0x562f3b48a000
brk(0x562f3b4ab000)                     = 0x562f3b4ab000
getppid()                               = 6327
stat("/root", {st_dev=makedev(8, 1), st_ino=3801089,
st_mode=S_IFDIR|0700, st_nlink=28, st_uid=0, st_gid=0, st_blksize=4096,
st_blocks=8, st_size=4096, st_atime=2015/12/25-21:35:53,
st_mtime=2015/12/25-21:31:19, st_ctime=2015/12/25-21:31:19}) = 0
stat(".", {st_dev=makedev(8, 1), st_ino=3801089, st_mode=S_IFDIR|0700,
st_nlink=28, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=8,
st_size=4096, st_atime=2015/12/25-21:35:53,
st_mtime=2015/12/25-21:31:19, st_ctime=2015/12/25-21:31:19}) = 0
open("/etc/init.d/samba", O_RDONLY)     = 3
fcntl(3, F_DUPFD, 10)                   = 10
close(3)                                = 0
fcntl(10, F_SETFD, FD_CLOEXEC)          = 0
rt_sigaction(SIGINT, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGINT, {0x562f397d4fd0, ~[RTMIN RT_1], SA_RESTORER,
0x7f029b4356e0}, NULL, 8) = 0
rt_sigaction(SIGQUIT, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL, ~[RTMIN RT_1], SA_RESTORER,
0x7f029b4356e0}, NULL, 8) = 0
rt_sigaction(SIGTERM, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGTERM, {SIG_DFL, ~[RTMIN RT_1], SA_RESTORER,
0x7f029b4356e0}, NULL, 8) = 0
read(10, "#!/bin/sh\n\n### BEGIN INIT INFO\n#"..., 8192) = 1266
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x7f029b9aa9d0) = 6330
wait4(-1, [....] Starting nmbd (via systemctl): nmbd.serviceError
creating textual authentication agent: Error opening current controlling
terminal for the process (`/dev/tty'): No such device or address
(polkit-error-quark, 0)
. ok
[{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 6330
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6330,
si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
rt_sigreturn({mask=[]})                 = 6330
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x7f029b9aa9d0) = 6360
wait4(-1, [....] Starting smbd (via systemctl): smbd.serviceError
creating textual authentication agent: Error opening current controlling
terminal for the process (`/dev/tty'): No such device or address
(polkit-error-quark, 0)
. ok
[{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 6360
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6360,
si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
rt_sigreturn({mask=[]})                 = 6360
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x7f029b9aa9d0) = 6390
wait4(-1, [....] Starting samba-ad-dc (via systemctl):
samba-ad-dc.serviceError creating textual authentication agent: Error
opening current controlling terminal for the process (`/dev/tty'): No
such device or address (polkit-error-quark, 0)
. ok
[{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 6390
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6390,
si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
rt_sigreturn({mask=[]})                 = 6390
read(10, "", 8192)                      = 0
exit_group(0)                           = ?
+++ exited with 0 +++
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.