我尝试了几种在 SL 6.5 上生成加密密码的不同方法,但似乎对我没有任何作用。我在各种 /var/log/anaconda* 文件中的任何地方都没有发现任何错误,但我无法登录,因此它显然无法正常工作。
/root/anaconda-ks.cfg
我用作模板的原始自动创建文件如下所示:
rootpw --iscrypted $6$...(about 100 characters)
authconfig --enableshadow --passalgo=sha512
Run Code Online (Sandbox Code Playgroud)
接下来我尝试了openssl passwd -1
这给了我:
rootpw --iscrypted $1$...(about 30 characters)
authconfig --enableshadow --passalgo=sha512
Run Code Online (Sandbox Code Playgroud)
我意识到这不是 SHA-512,所以我尝试了一个 Python one-liner 我发现在几个地方重复:
rootpw --iscrypted $6...(about 10 characters)
authconfig --enableshadow --passalgo=sha512
Run Code Online (Sandbox Code Playgroud)
没有任何效果;我无法登录,最终不得不在单用户模式下重置 root 密码。
我有一个全新的 Scientific Linux 6 实例(类似于 RHEL6 和 CentOS6),在 Parallels 上运行。
主目录位于非标准位置,我将其称为 /homedir
当我 ssh 进入这个框时,我收到一个错误:
laptop $ ssh 192.168.1.100
stefanl@192.168.1.100's password:
Could not chdir to home directory /homedir/stefanl: Permission denied
Run Code Online (Sandbox Code Playgroud)
但紧接着我就可以 chdir 到那个目录,没有错误:
[stefanl@localhost /]$ cd /homedir/stefanl
[stefanl@localhost ~]$ touch foo
[stefanl@localhost ~]$ ls -la
total 28
drwx------. 3 stefanl wheel 4096 Sep 14 17:53 .
drwxr-xr-x. 5 root root 4096 Sep 14 17:16 ..
-rw-------. 1 stefanl stefanl 303 Sep 14 18:16 .bash_history
-rw-r--r--. 1 stefanl stefanl 18 May …
Run Code Online (Sandbox Code Playgroud) 在 Scientific linux 6.0(RH like linux)上我不小心删除了 python,所以 yum 也删除了。µ
如何用rpm安装yum?
编辑
我尝试安装 python,但它以某种方式循环依赖:
rpm -Uvh http://ftp2.scientificlinux.org/linux/scientific/6.0/x86_64/os/Packages/python-libs-2.6.5-3.el6.x86_64.rpm
Retrieving http://ftp2.scientificlinux.org/linux/scientific/6.0/x86_64/os/Packages/python-libs-2.6.5-3.el6.x86_64.rpm
error: Failed dependencies:
python = 2.6.5-3.el6 is needed by python-libs-2.6.5-3.el6.x86_64
Run Code Online (Sandbox Code Playgroud)
然后:
rpm -Uvh http://ftp2.scientificlinux.org/linux/scientific/6.0/x86_64/os/Packages/python
-2.6.5-3.el6.x86_64.rpm
Retrieving http://ftp2.scientificlinux.org/linux/scientific/6.0/x86_64/os/Packages/python-2.6.5-3.el6.x86_64.rpm
error: Failed dependencies:
libpython2.6.so.1.0()(64bit) is needed by python-2.6.5-3.el6.x86_64
Run Code Online (Sandbox Code Playgroud) 我正在通过 kickstart 安装 Scientific Linux 6.1,我正在尝试调试一个问题。
根据anaconda 和 kickstart 的提示和技巧,我应该有几个可用的虚拟控制台:
What the different terminals display
Alt-F1 The installation dialog when using text or cmdline
Alt-F2 A shell prompt
Alt-F3 The install log displaying messages from install program
Alt-F4 The system log displaying messages from kernel, etc.
Alt-F5 All other messages
Alt-F7 The installation dialog when using the graphical installer
Run Code Online (Sandbox Code Playgroud)
虚拟控制台Alt- F1、F3、F4&F5都可以工作并显示各种日志信息。但是,位于Alt-的虚拟控制台F2不执行任何操作。
我真的可以使用对 shell 提示 ( …
我一直在为 Scientific Linux 安装编写 kickstart 脚本。我的目标是创建一个 CD ISO,以便有人可以轻松地在服务器上安装它。我已经能够用它做相当多的事情,但我仍然遇到一些需要帮助的问题。
任何帮助或指示将不胜感激。
######################################################
## Custom Kickstart Script
######################################################
######################################################
## Include another kickstart script
######################################################
%include sl62-livecd-gnome.ks
######################################################
## Basic Settings
######################################################
cdrom
install
autopart
autostep
xconfig --startxonboot
rootpw testpassword
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
auth --useshadow --enablemd5
selinux --disabled
services --enabled=iptables,rsyslog,sshd,ntpd,NetworkManager,network --disabled=sendmail,cups,firstboot,ip6tables
clearpart --all
######################################################
## Repos
######################################################
repo …
Run Code Online (Sandbox Code Playgroud) 我放了一个 cron 脚本/etc/cron.d
:
[root@node ~]# cat /etc/cron.d/reconfig
0 */6 * * * root /root/bin/reconfig.pl
Run Code Online (Sandbox Code Playgroud)
但是我没有得到 root 的 cron 任务列表:
[root@node ~]# crontab -l
no crontab for root
Run Code Online (Sandbox Code Playgroud)
我如何检查它是否运行正常?
它是一个 Scientific Linux 6.4 节点。