jerome1232
August 14th, 2008, 11:05 PM
Currently on my little teamspeak server I have a limited account creativly called teamspeak, it has a home directory of /home/teamspeak. Teamspeak server and tss2perlmod are installed in that home directory
Now I'm thinking instead I want to create a system user called teamspeak, move the files to /opt/teamspeak chmod/own them as root:teamspeak rwxrwx--- (or what would be the "correct" directory to place the program) and then put my main user (the one I can ssh in as) in the teamspeak group (it already is).
I also want to create a new user give it admin rights and take admin away from my current admin user.
Is there a better way to arrange things?
Are the following steps the correct way to do things.
sudo -i
mv /home/teamspeak /opt/
chown -R root:root /opt/teamspeak
deluser jeremy teamspeak # remove current admin from the group
deluser teamspeak
rm -rf /home/teamspeak # makeing sure the old home direcotry is gone
adduser --system teamspeak
adduser joe #made up admin user the real name will be different I will be adding any user other than jeremy and teamspeak that I see under my current admin user actually
adduser joe admin
deluser jeremy admin # this won't break my current root shell will it?
adduser jeremy teamspeak
chown -R root:teamspeak /opt/teamspeak
chmod -R ug+rwx,o-rwx /opt/teamspeak # Give owner and group rwx access other no access is this a secure type of permission?
exit
Now I'm thinking instead I want to create a system user called teamspeak, move the files to /opt/teamspeak chmod/own them as root:teamspeak rwxrwx--- (or what would be the "correct" directory to place the program) and then put my main user (the one I can ssh in as) in the teamspeak group (it already is).
I also want to create a new user give it admin rights and take admin away from my current admin user.
Is there a better way to arrange things?
Are the following steps the correct way to do things.
sudo -i
mv /home/teamspeak /opt/
chown -R root:root /opt/teamspeak
deluser jeremy teamspeak # remove current admin from the group
deluser teamspeak
rm -rf /home/teamspeak # makeing sure the old home direcotry is gone
adduser --system teamspeak
adduser joe #made up admin user the real name will be different I will be adding any user other than jeremy and teamspeak that I see under my current admin user actually
adduser joe admin
deluser jeremy admin # this won't break my current root shell will it?
adduser jeremy teamspeak
chown -R root:teamspeak /opt/teamspeak
chmod -R ug+rwx,o-rwx /opt/teamspeak # Give owner and group rwx access other no access is this a secure type of permission?
exit