Experiment 4 HSIS Lab
Experiment 4 HSIS Lab
`stat filename`
Displays detailed information about a file, including permissions, ownership, and timestamps.
`chmod gw filename`
Removes write permission from the group for `filename`.
3. Delete a User
`sudo userdel <username>`: Deletes a user from the system.
`sudo userdel r <username>`: Deletes a user along with their home directory and mail spool.
Group Management Commands
4. Create a New Group
`sudo groupadd <groupname>`: Creates a new group with the specified name.
Dynamic IP (DHCP):
`sudo dhclient <interface_name>`: Request an IP from a DHCP server.
Add `iface eth0 inet dhcp` to `/etc/network/interfaces` for Debianbased systems for a persistent
DHCP configuration.