intermediate, add chsh command

git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@281 a672b425-5310-4d7a-af5c-997e18724b81
This commit is contained in:
alberj 2018-11-19 18:06:47 +00:00
parent c0a6a75fce
commit a1c808ba22
1 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,38 @@
---
layout: page
category-page: intermediate
category-title: intermediate commands
author: Joy Albertini
tags:directory user shell
title: chsh
---
<p>The <code>chsh</code>
command cheanges user's login shell property:
<ul>
<li>chenage Password of the user</li>
<li> shell local directory</li>
<li>Full name of the user</li>
<li>Office location</li>
<li>Office phone</li>
<li>home phone </li>
<ul> <br>
Example:
for cheanging password after the command chsh use passwd.</p>
<pre>
chsh [-flag] user
</pre>
<ul>
<li><code>-s</code> (shell)set shell as the login shell</li>
<li><code>-l</code> (listChanges the symbolic link and not the file or directory referred by the symbolic link.</li>
<li><code>-R</code> changing the ownership for each file in a folder, if encounter symbolic link it will cheange the owenership of that symbolic link,
and the directoryfile referred in the symbolic link, but the directory is not further transversed. </li>
<li><code>-RH</code> changing the ownership for each file in a folder, if encounter symbolic link it will cheange the owenership of that symbolic link,
the directory/file referred in the symbolic link, and all the directory is further transversed.</li>
<li><code>-RL</code> <!-- don't understand the diffrence between -RH --> If the -R option is specified and a symbolic link referencing a file of type directory
is specified on the command line or encountered during the traversal of a file hierarchy, the chown command shall change the user ID (and group ID, if specified) of the directory referenced by the symbolic link and all files in the file hierarchy below it.</li>
<li><code>-RP</code> changing the ownership for each file in a folder, if encounter symbolic link it will cheange the owenership of that symbolic link, but will not chenage the
the directory/file referred in the symbolic link, and the directory is not further transversed.</li>
</ul>