Changes
From SME Server
Jump to navigation
Jump to search
← Older edit
Newer edit →
Useful Commands
(view source)
Revision as of 08:59, 17 August 2015
600 bytes added
,
08:59, 17 August 2015
→Command-Line Quick Reference Guide
Line 297:
Line 297:
cd /home/e-smith
cd /home/e-smith
du --si --max-depth 1
du --si --max-depth 1
+
+
====UID/GID====
+
* see informations of a user
+
id USER
+
*change the uid of a user
+
usermod -u '''UID''' USER_NAME
+
* create a group
+
groupadd -g '''GID''' -o GROUPE_NAME
+
* modify the GID of a group
+
groupmod -o -g '''GID''' GROUPE_NAME
+
* add a principal group to a user
+
usermod -g '''GROUP_NAME_OR_GID''' USER_NAME
+
* add a secondary group to a user
+
usermod -a -G '''GROUP_NAME_OR_GID''' USER_NAME
+
+
====usermod====
+
*change the home directory (-m move old file to the new location)
+
usermod -d /var/lib/jdownloader jdownloader
+
* change the shell access of a user
+
usermod --shell /bin/bash jdownloader
====Read a TAI64N timestamp in human readable format====
====Read a TAI64N timestamp in human readable format====
Stephdl
Administrators
5,576
edits
Navigation menu
Page actions
Page
Discussion
View source
History
Page actions
Page
Discussion
More
Tools
In other languages
Personal tools
English
Log in
Koozali SME Server
Main Page
Welcome
Releases
Testimonials
Documentation
SME Server FAQ
Volunteering
Commercial Support
Recent activities
Dashboard
Recent wiki changes
Recent bug changes
Unread Forum posts
Koozali resources
Contribs
How-To's
Forums
Bugzilla
Mailing Lists
Translations
Download
Koozali SME Server wiki
Wiki statistics
Wiki categories
Wiki Help
Koozali Wiki Help
Tools
Special pages
Printable version
Search