Skip to contentমূল লেখায় যান

Stage 04 · Linuxধাপ 04 · Linux · 7 topics · 24 commands7টি টপিক · 24টি কমান্ড

Users and Permissions

Manage users and groups, use root with care, and control access to files.

UPPERCASE = your own value · red ! = can destroy data · tick a card when you know itUPPERCASE = আপনার নিজের মান · লাল ! = data নষ্ট করতে পারে · জানা হলে কার্ডে টিক দিন

0 / 7 done0 / 7 সম্পন্ন

User Management

whoami
your user nameআপনার user name
id
your user id and groupsআপনার user id ও group
who
who is logged inকে login করে আছে
w
who is logged in, and what they runকে login করে আছে আর কী চালাচ্ছে
last
recent loginsসাম্প্রতিক login
passwd
change your passwordআপনার password বদলায়

Source 1সোর্স 1Source 2সোর্স 2Source 3সোর্স 3Source 4সোর্স 4Source 5সোর্স 5Source 6সোর্স 6

Users and Groups

/etc/passwd
users: name:x:UID:GID:info:home:shelluser-এর তালিকা: name:x:UID:GID:info:home:shell
/etc/shadow
password hashes (root only)password hash (শুধু root দেখতে পারে)
/etc/group
groups and their membersgroup ও তাদের সদস্য
getent passwd USER
look up a user via NSS (nsswitch.conf)NSS (nsswitch.conf) দিয়ে user খোঁজে
id USER
user id and groups of a userকোনো user-এর id ও group
groups USER
the groups of a userকোনো user-এর group-গুলো
cut -d: -f1 /etc/passwd
list all user namesসব user name দেখায়

Source 7সোর্স 7Source 8সোর্স 8Source 9সোর্স 9Source 10সোর্স 10Source 2সোর্স 2Source 11সোর্স 11Source 12সোর্স 12

Create, Update, and Delete Users

sudo useradd -m -s /bin/bash USER
create a user with a home and a shellhome ও shell-সহ user বানায়
sudo adduser USER
Debian/Ubuntu: create a user, with promptsDebian/Ubuntu: প্রশ্ন করে user বানায়
sudo passwd USER
set a user's passworduser-এর password ঠিক করে
sudo usermod -aG GROUP USER
add a user to a groupuser-কে group-এ যোগ করে
sudo usermod -L USER
lock an accountaccount lock করে
sudo userdel -r USER
Warningসতর্কতা: delete a user and their homeuser ও তার home মোছে
sudo groupadd GROUP
create a groupgroup বানায়
sudo groupdel GROUP
delete a groupgroup মোছে

Source 13সোর্স 13Source 6সোর্স 6Source 14সোর্স 14Source 15সোর্স 15Source 16সোর্স 16Source 17সোর্স 17Source 18সোর্স 18

Super User

sudo CMD
run a command as rootroot হিসেবে command চালায়
sudo -u USER CMD
run a command as another userঅন্য user হিসেবে command চালায়
sudo -l
list what you may run with sudosudo দিয়ে কী কী চালাতে পারেন তা দেখায়
sudo !!
repeat the last command as rootশেষ command root হিসেবে আবার চালায়
sudo -i
open a root login shell; exit leavesroot login shell খোলে; exit দিলে বের হয়
su - USER
switch user, with their environmentuser বদলায়, তার environment-সহ
sudo visudo
edit the sudoers file safelysudoers file নিরাপদে edit করে

Source 19সোর্স 19Source 20সোর্স 20Source 21সোর্স 21Source 22সোর্স 22

File Permissions

ls -l FILE
show the permissionspermission দেখায়
-rwxr-xr--
type · owner rwx · group r-x · others r--ধরন · owner rwx · group r-x · others r--
r=4 w=2 x=1
add them up: rwx = 7, r-x = 5যোগ করুন: rwx = 7, r-x = 5
stat -c %a FILE
the permissions as a numberpermission সংখ্যায় দেখায়
umask
the mask removed from new filesনতুন file থেকে যে permission বাদ যায় তার mask
namei -l PATH
the permissions along a pathpath-এর প্রতিটি অংশের permission

Source 23সোর্স 23Source 24সোর্স 24Source 25সোর্স 25Source 22সোর্স 22Source 26সোর্স 26

Managing Permissions

chmod 755 FILE
rwxr-xr-x: owner all, others read and runrwxr-xr-x: owner সব পারে, অন্যরা পড়ে ও চালায়
chmod 644 FILE
rw-r--r--: owner writes, others readrw-r--r--: owner লেখে, অন্যরা পড়ে
chmod u+x FILE
make a file executable for the ownerowner-এর জন্য file executable করে
chmod go-w FILE
remove write from group and othersgroup ও others থেকে write সরায়
chmod -R 750 DIR
change a whole directory treeপুরো directory tree-র permission বদলায়
chown USER:GROUP FILE
change the owner and the groupowner ও group বদলায়
chown -R USER DIR
change the owner of a whole treeপুরো tree-র owner বদলায়
chgrp GROUP FILE
change the groupgroup বদলায়

Source 27সোর্স 27Source 28সোর্স 28Source 29সোর্স 29

Permissions Cheat Sheet

7 6 5 4 0
rwx · rw- · r-x · r-- · nonerwx · rw- · r-x · r-- · কিছুই না
755
programs and directories (rwxr-xr-x)program ও directory (rwxr-xr-x)
644
normal files (rw-r--r--)সাধারণ file (rw-r--r--)
600
private to the owner: keys, secretsশুধু owner-এর: key, secret
chmod u+s FILE
setuid: runs as the file's ownersetuid: file-এর owner হিসেবে চলে
chmod g+s DIR
setgid: new files get the directory's groupsetgid: নতুন file directory-র group পায়
chmod +t DIR
sticky: only file owner, dir owner, root can deletesticky: শুধু file-এর owner, directory-র owner বা root মুছতে পারে
s S t T
ls -l: small = also x, capital = no xls -l-এ: ছোট হাতের = x-ও আছে, বড় হাতের = x নেই

Source 26সোর্স 26Source 27সোর্স 27Source 23সোর্স 23

3 min read3 মিনিটে পড়া যায় · 7 sections7টি সেকশন · 29 sources29টি সোর্স · updated Nov 2026আপডেট: Nov 2026

Reels on this topicএই টপিকের রিলস

Short videos from other creators, picked for this topic. They are not part of this page's fact-checked text. Nothing loads from YouTube until you press Play.অন্য ক্রিয়েটরদের বানানো ছোট ভিডিও, এই টপিকের জন্য বাছাই করা। এগুলো এই পেজের ফ্যাক্ট-চেক করা লেখার অংশ নয়। চালান বাটন চাপার আগে YouTube থেকে কিছুই লোড হয় না।

Sourcesসোর্স29 · accessed 2026-11-27দেখা হয়েছে: 2026-11-27

Suggest an editএডিটের পরামর্শ দিন
  1. [1]whoami(1) - print effective user name
  2. [2]id(1) - print real and effective user and group IDs
  3. [3]who(1) - show who is logged on
  4. [4]w(1) - show who is logged on and what they are doing
  5. [5]last(1) - list logins on the system
  6. [6]passwd(1) - change user password
  7. [7]passwd(5) - password file
  8. [8]shadow(5) - shadowed password file
  9. [9]group(5) - user group file
  10. [10]getent(1) - get entries from Name Service Switch libraries
  11. [11]groups(1) - print the groups a user is in
  12. [12]cut(1) - remove sections from each line of files
  13. [13]useradd(8) - create a new user or update default new user information
  14. [14]usermod(8) - modify a user account
  15. [15]userdel(8) - delete a user account and related files
  16. [16]groupadd(8) - create a new group
  17. [17]groupdel(8) - delete a group
  18. [18]adduser(8) - add or manipulate users or groups
  19. [19]sudo(8) - execute a command as another user
  20. [20]visudo(8) - edit the sudoers file
  21. [21]su(1) - run a command with substitute user and group ID
  22. [22]bash(1) - GNU Bourne-Again SHell
  23. [23]What information is listed (ls)
  24. [24]stat(1) - display file or file system status
  25. [25]namei(1) - follow a pathname until a terminal point is found
  26. [26]Structure of File Mode Bits
  27. [27]chmod(1) - change file mode bits
  28. [28]chown(1) - change file owner and group
  29. [29]chgrp(1) - change group ownership