我试图在基于runit的linux系统中运行agetty,但是我有以下问题
sh: cannot set terminal process group (136) Inappropriate ioctl for device
sh: no job control in this shell
我对这个错误一无所知,你有什么想法吗?
运行agetty的脚本是
#!/bin/sh
exec /sbin/agetty 38400 tty1 linux --noclear
任何帮助都会很好。
因此,我试图登录一个tty,它看起来像这样:
Arch Linux (tty1)
hostname login: _
Password: _
Last Login at (Date) on (tty1)
[sudo] password for user: _
因此,我无法使用DM登录。
这才刚刚开始,我不知道为什么。
起初,我认为这是我的.zshrc的一个问题,但我删除了它的内容,错误仍然存在。
有没有人有线索知道是什么导致了这一切?或者我能在哪里找到更多的信息?
谢谢。
这个问题可能是Windows特有的.我还没有在Linux或Mac上测试过它。
我用:
Windows 7 64位
Node.js 8.1.3
GITforWindows2.8.1,包括GNU,版本4.3.42(5)-release
node my-cli.js > foo.txt:错误output is not a tty
node my-cli.js < foo.txt:错误input is not a tty。
我们都知道linux系统调用setsid()允许我们在任何需要的时候创建一个新的会话,尽管通常的做法是在我们登录或者想要启动一个新的守护进程时。我注意到linux-PAM (可插拔身份验证模块)也有“会话管理”的概念,所以我的问题是: Linux PAM中的会话是否与setsid()创建的会话相同?在linux PAM会话中通常可以做什么?谢谢。
分发:科学linux 6.5 (碳),并不是典型的Linux品牌。
尝试改变一个使用这些指示进行SSH的用户,显然失败了,现在我甚至无法与那个用户一起登录。我检查了/var/log/secure,看它是否能提供任何线索,我得到了以下信息。
: Address aaa.bbb.ccc.ddd maps to "A_Certain_Computer"
: Accepted password for student.fesns from aaa.bbb.ccc.ddd port ##### ssh2
: pam_unix(sshd:session): session opened f
在正常工作的Linux机器上,命令w报告两个用户(因为两个用户是连接的)
w
19:23:19 up 1:53, 2 users, load average: 0,44, 0,63, 0,81
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
重新启动报告正确后,1名用户
w
19:26:44 up 1:03, 1 users, load average: 0,44, 0,73, 0,90
USER TTY FROM LOGIN@ IDLE J
我正在尝试为linux编写一个简单的嗅探器驱动程序,它将把所有请求重定向到真正的串口(并将所有消息打印到系统日志中)。我在互联网上找到了一些例子,实现了很少的功能。例如,打开伪设备时调用的函数:
static int dev_open(struct inode *inodep, struct file *filep) {
numberOpens++;
printk(KERN_INFO "sniffer: Device has been opened %d time(s)\n", numberOpens);
/// Connecting to real dev
我想写代码来添加在行中为ex打开inittab文件,并添加
c2:1235:respawn:/sbin/agetty 38400 tty2 linux
c3:1235:respawn:/sbin/agetty 38400 tty3 linux
c4:1235:respawn:/sbin/agetty 38400 tty4 linux
c5:1235:respawn:/sbin/agetty 38400 tty5 linux
c6:12345:respawn:/sbin/agetty 38400 tty6 linux
<<~~~ i want add code here
# Lo