Skip to content

有害部落格同好會

2013/06/05 / Oracle EBS

Change user shell on FreeBSD Linux and AIX

參考資料: 這裡

Display user information (FreeBSD):

$pw usershow user_name
user_name:*:1002:1002::0:0:Some User Name:/home/user_name:/bin/sh

You’ll notice that last field (/usr/local/bin/bash) is the shell of the user.
Display user information(AIX):

$ lsuser -a shell root
root shell=/usr/bin/ksh

Change user’s shell on FreeBSD system to bash

$ pw usermod user_name -s /usr/local/bin/bash
$ pw usershow user_name
user_name:*:1002:1002::0:0:Some User Name:/home/user_name:/usr/local/bin/bash

Change user’s shell on Linux

$ chsh -s /bin/bash user_name

Change user shell on AIX

$ chuser shell=/path/to/new/shell root

In this article I’ve used root and user_name users.

You’ll have to use whatever suits your case.

Be careful to what shell you’re changing to because that user (or root in some cases) will not be able to log in if the shell does not exist or is an altered binary file.

Post navigation

Previous Post:

查詢 form session timeout

Next Post:

AP Supplier API

分類

  • 新奇有趣の搶先報導
    • Raspberry Pi
    • 手機相關
    • 推薦軟體
    • 新鮮有趣
    • 生活資訊
  • 想破腦袋の程式技巧
    • Oracle EBS
    • Database
    • Excel, VBA
    • php
    • JavaScript, VBScript
    • VS.NET
    • Others
    • Windows
    • SAP
  • 撩動心弦の短文小品
  • 聚沙成塔の理財守則
  • 不可不知の職場實錄
  • 剎那永恆の生活翦影

近期文章

  • 受保護的內容: 如何透過Personalize功能呼叫另一form來回傳值
  • Win10 / 8 / 7 無法安裝 SSD
  • 受保護的內容: 樹梅派+遠端連線
  • EBS R12 取得客戶的phone, email, URL資料
  • 受保護的內容: 管控Workflow Administrator Role

友站

  • Masaya396's 協奏曲
  • 老塗的咁仔店

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

Tag Cloud

你目前使用的瀏覽器不支援 HTML5 的 CANVAS 標籤。

  • WinXP
  • VB.Net
  • SAP
  • javascript
  • VB6
  • VBA
  • Oracle DB
  • MySql
  • EBS 11.5.10
  • Win7
  • excel
  • HTC
  • CSS
  • EBS 12.1.3
  • SQL
  • Oracle EBS
  • LDAP
  • 管理
  • php
  • 感情
© 2025 有害部落格同好會 - Powered by SimplyNews