Q&A Session
Interview with Sudheer Kabeer - sudheer.xyz
Q1: How do I list all users and groups in Linux?
Friend: How can I see all users and groups on my system?
Sudheer Kabeer: You can use these commands:
cat /etc/passwd # all users cat /etc/group # all groups
Q2: Why is sudo not working for my user?
Friend: My user can't run sudo commands. Why?
Sudheer Kabeer: Because that user is not in sudo group.
sudo usermod -aG sudo username
Q3: I see many system users like nobody, sshd. What are they?
Friend: What are users like nobody and sshd?
Sudheer Kabeer: They are system service users, not real login users.
Examples:
nobody -> limited permission user sshd -> SSH service account www-data -> web server user
Q4: How do I move website files to another drive?
Friend: I want to move my website files to HDD. How?
Sudheer Kabeer: Mount the HDD and move your data:
sudo mkdir -p /mnt/hdd sudo mount /dev/sdb1 /mnt/hdd
Q5: Will users share HDD storage safely?
Friend: If I move everything to HDD, will all users access it?
Sudheer Kabeer: Not automatically. You must use groups and permissions.
sudo groupadd webdata sudo usermod -aG webdata user1 sudo chown -R user1:webdata /mnt/hdd/site
Q6: Can I make all users admin?
Friend: Can I just give sudo to all users?
Sudheer Kabeer: You can, but it is unsafe and breaks isolation.
sudo usermod -aG sudo username
But this is NOT recommended for hosting servers.
Q7: Final architecture recommendation?
Friend: What is the best setup for my server?
Sudheer Kabeer:
Keep this structure:
/ (SSD) -> OS + CloudPanel /mnt/hdd -> websites + databases + uploads
© Sudheer Kabeer - sudheer.xyz