Ubuntu 增加新使用者
1:新增使用者
useradd user1
passwd user1
2:建立使用者目錄
usermod –d /users/us1 user1
3:更改使用者資料夾歸屬屬性
chown -R user1:users /users/user1
4:更改bash的指向
usermod -s /bin/bash user1
5.在使用者端更改終端顏色(參考https://www.onlyke.com/html/807.html)
5.1首先
su user1
拷貝預設的.bashrc過來
cp /etc/skel/.bashrc ~/
5.2然後建立.profile檔案
vi ~/.profile
貼上下面的內容
# ~/.profile: executed by Bourne-compatible login shells.
if [ "$BASH" ]; then
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi
mesg n
5.3 想立即生效,執行下面命令
source ~/.profile
轉載自一下文章
---------------------
作者:a137376864
來源:CSDN
原文:https://blog.csdn.net/a137376864/article/details/66980885
相關推薦
Ubuntu 增加新使用者
1:新增使用者useradd user1passwd user12:建立使用者目錄usermod –d /users/us1 user13:更改使用者資料夾歸屬屬性chown -R user1:users /users/user14:更改bash的指向usermod -s /bin/bash user15.在
ubuntu增加新使用者並且新增sudo許可權
當做個人筆記記錄下。 首先在root下,或者sudo下 adduser xxx 建立過程中會讓你輸入密碼,然後(後者xxx的目錄是在建立使用者的時候就會自動建立) chown -R xxx:xxx
如何給linux(ubuntu)增加新的外接解析度
1.查詢你要的外接解析度尺寸,一般外接顯示器機身標籤有註明最佳解析度,也可通過購物網站查詢裝置資訊得到這個解析度 2.查詢當前顯示器輸出資訊 -------------------------------------terminal 輸入程式碼--------------
CDH5.16.1叢集增加新節點 Ubuntu 16.04上搭建CDH5.16.1叢集 Ubuntu 16.04上搭建CDH5.16.1叢集
如果是全新安裝叢集的話,可以參考《Ubuntu 16.04上搭建CDH5.16.1叢集》 下面是叢集新增節點步驟: 1.已經存在一個叢集,有兩個節點 192.168.100.19 hadoop-master 192.168.100.20 hadoop-slave1 新增節點ip為
給vmware的ubuntu虛擬機器增加硬碟、增加新的分割槽並自動掛載
[email protected]:/etc/init.d# 把第二塊硬碟sdb的資訊加入到 /etc/fstab中,就可以自動掛載 [email protected]:/etc/init.d# cat /etc/fstab # /etc/
Ubuntu增加一個用戶並給普通用戶賦予root權限的方法
people tro 一個 帳號登錄 token upd ubunt user date 1、添加用戶,首先用adduser命令添加一個普通用戶,命令如下: #adduser tommy //添加一個名為tommy的用戶#passwd tommy //修改密碼Ch
增加新模塊註意事項
內容 nta err else void tool 註意事項 object 應用程序 /// <summary> /// /// 應用程序的主入口點。 /// /// 增加容器控件定義 /// TableLayoutPanel tlp = ne
VMWARE虛擬機系統中增加新的虛擬硬盤
VMWARE虛擬機系統中增加新的虛擬硬盤VMWARE虛擬機系統中增加新的虛擬硬盤1.Vmware中增加虛擬磁盤 2.通過dmesg查看新增加硬盤的設備號啟動虛擬機,通過終端獲取新加硬盤設備的設備號 #dmesg|grep sdb(查看新添加的硬盤的設備號,一般為sdx或者hdx,通過查看容量,確認所找到的硬盤
Spring-AOP為類增加新的功能
-a ring mat ctx implement 另一個 double tar targe 適配器的簡單應用實現: 比如:有一個類Car,在類中有兩個屬性一個為汽車名name,另一個為速度speed。其行為為run()。 現在有一輛車BMWCar 增加了GP
如何在已經安裝好的Nginx上增加新模塊
tails bit blog 學習 net https 學習資源 tps log 學習資源: https://blog.csdn.net/dxm2025/article/details/41149865 https://blog.csdn.net/qq_36663951/a
在已經安裝好的Nginx上增加新模組
下載模組原始碼本例項以nginx-push-stream-module為例子 [email protected]: cd ~/Downloads/ [email protected]: git clone http://github.com/wandenberg/
在已經安裝好的Nginx上增加新模塊
相關信息 conf all tar 文件的 sta 設置 nginx配置參數 .tar.gz 下載模塊源碼本實例以nginx-push-stream-module為例子 user@user: cd ~/Downloads/ user@user: git clone h
Ubuntu建立新使用者的正確姿勢
作者按:因為教程所示圖片使用的是 github 倉庫圖片,網速過慢的朋友請移步《Ubuntu 建立新使用者的正確姿勢》原文地址。更歡迎來我的小站看更多原創內容:godbmw.com,進行“姿勢”交流 ♪(∇*) 1. 前言 最近在學習《系統程式設計》,老師讓建立新的
jquery增加新元素方法
function appendText() { var txt1="<p>Text.</p>"; // 以 HTML 建立新元素 var txt2=$("<p></p>").text("Text."); // 以 jQu
iconfont 在原有的圖示中,增加新的圖示
第一步 下載樣式 http://www.iconfont.cn/ 選擇圖表,點選加入購物車 第二步 解壓下載檔案到專案 css中 第三步 修改檔名稱 與 iconfont.css 名路徑 第四步 將@font-face 拷貝到原 iconfont.css 中
玩轉QQ玩一玩分享,讓遊戲增加新的活力
邀請好友功能怎麼做? 個人性化分享怎麼做?分享是否成功? 分享渠道如何判斷? 耐心看完會給你一個答案 玩轉QQ玩一玩分享,讓遊戲增加新的活力 相關參考連結 設計規範 分享圖片尺寸:長寬比16:9 分享能力文件 分享使用場景 分
【python】在Excel末尾增加新行
轉載:http://blog.csdn.net/hqzxsc2006/article/details/51768351 import os import xlrd import xlwt from xlutils.copy import copy def excelwrite(L=None
linux ubuntu 增加別名
增加別名的好處是代替每次都要輸入一大堆命令,使用別名更加方便快捷 別名存放在~/.bashrc檔案中,此檔案是個隱藏檔案 我們可以先開啟這個檔案看看系統已經定義好的別名 使用vim開啟 vim ~/.bashrc 可以看到如下 alias ll=’l
Telegram 5.0版本釋出:增加新的設計元素、更多的功能
Telegram 是四年內擁有超過 2 億活躍使用者的訊息應用程式,剛剛釋出了一項重大更新,為 Android 和 iOS 平臺帶來了許多新功能。如果您是 Apple 使用者,您會很高興知道開發人員實施了大約 400 項小改進。 另一方面,Android 端正在獲得一種新
CDH增加新的節點,擴容DataNode報錯
可能出的錯 1 Hive還是Hue啟動不起來, 提示ImportError: libxslt.so.1 ... 其實真正的錯是缺少libxml2. 但是用yum install libxml2並不能解決的, 要用yum install libxml2-python 2 Hue起不