PDA

View Full Version : adduser HOWTO?



A. Jorge Garcia
03-24-2004, 04:54 PM
OK, I set up a fileserver/printserver in my school LAN for my students to save/print their work. They typically login via ssh or an X client.

My problem is that when I intalled KNOPPIX as DEBIAN (20031119) on the hdd I added users with adduser. However, every one can see everyone else's home dirs and read the contents of their files. Is there a way to prevent this when I create a user? I mean all files created by my students are rw-r--r-- (ie: chmod 644) and their executables are rwxr-xr-x (ie: chmod 755). Can I make everyone their own group so they can read only their own files or have the files saved rw------- or rwx------?

TIA,
AJG

Markus
03-24-2004, 06:37 PM
In /etc/adduser.conf there's a line at the end that says: DIR_MODE=0755
Try changing this to 0700 (or whatever you want) and make a test user and see what happens.