码迷,mamicode.com
首页 >  
搜索关键字:man passwd    ( 16877个结果
在Ubuntu中用root帐号登录
一、其实我个人认为这没有多大必要,因为当你需要 root 的权限时,使用 sudo 便可以了。如果你实在需要在 Ubuntu 中启用 root 帐号的话,那么不妨执行下面的操作: 1.重新设置 root 的密码: $sudo passwd root#按照提示输入两次新的密码,并加以确认。 2....
分类:其他好文   时间:2014-05-23 05:59:34    阅读次数:237
CentOS系统mount windows共享文件夹
格式: mount -t cifs //IP/share-folder  /mnt-point -o username=your-username,passwd=your-password [root@client mnt]# mount -t cifs //192.168.230.1/f /mnt/share/ -o username=***,passwd=*** [root@clien...
分类:Windows程序   时间:2014-05-23 00:39:58    阅读次数:458
Writing Reentrant and Thread-Safe Code(译:编写可重入和线程安全的代码)
Writing Reentrant and Thread-Safe Code编写可重入和线程安全的代码(http://www.ualberta.ca/dept/chemeng/AIX-43/share/man/info/C/a_doc_lib/aixprggd/genprogc/writing_re...
分类:编程语言   时间:2014-05-21 21:30:30    阅读次数:434
Valid Palindrome
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Pana...
分类:其他好文   时间:2014-05-21 21:20:54    阅读次数:291
[心得]Ubuntu無法ssh登入
裝好ssh後,發覺無法用root登入,可是sshd_config接正確。後來發現原因在於,Ubuntu沒有root帳號,但是可以透過sudo -s拿到root權限。su root 密碼怎樣打也行不通,不過sudo -s卻可以。總之就是要用sudo -s 後 執行passwd 建立帳號ref.http...
分类:其他好文   时间:2014-05-21 18:13:49    阅读次数:296
Linux如何获取命令帮助
从零开始学习Linux,正在跟马哥的视频学习。为了加深记忆,方便日后查询,对知识点做个总结。要更好的实现自动化运维,必须熟练使用Linux命令。但是命令繁多,不常用的会忘记。这样就需要使用命令帮助了。可以通过下面6种方法获取命令帮助:No.说明使用方法1查看命令手册#manCO..
分类:系统相关   时间:2014-05-21 13:19:19    阅读次数:440
[转]BSD编码规范
转自一个命令(man 9 style)挺好的文档。STYLE(9) FreeBSD Kernel Developer’s Manual STYLE(9)NAME style — kernel source file style guideDESCRIPTION This file specifies...
分类:其他好文   时间:2014-05-21 03:53:34    阅读次数:415
Linux管道及IO重定向小练习
1.统计/usr/bin目录下的文件个数[root@localhost~]#ls/usr/bin|wc-l 1306 [root@localhost~]#2.取出当前系统上所有用户的SHELL,要求,每种SHELL只显示一次,并且按顺序进行显示[root@localhost~]#cut-d:-f7/etc/passwd|sort-u /bin/bash /bin/nologin /bin/sync /bin/tcsh /sb..
分类:系统相关   时间:2014-05-21 02:01:09    阅读次数:530
Gentoo Linux安装详解
1.前期准备远程登录:开启ssh服务:/etc/init.d/sshdstart设置密码:passwd以便使用putty、sshclient远程登录上传stage等(有时在线下载很慢,而局域网上传很快)准备磁盘:分区:fdisk/dev/sda/dev/sda1:/boot100M(32-100M)设启动笔记-a/dev/sda2:/20G/dev/sda3:/home20G/dev/..
分类:系统相关   时间:2014-05-20 23:58:58    阅读次数:677
修改root 密码
centos系统修改密码root:在执行passwdroot后报错:修改root密码passwd:Authenticationtokenmanipulationerror操作方法:ls-l/etc/passwd和ls-l/etc/shadow查看到两个文件均有写权限。chattr-i/etc/passwd和chattr-i/etc/shadow减掉这两个文件的。。这个时候执行passwdroot还是..
分类:其他好文   时间:2014-05-20 23:40:00    阅读次数:423
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!