Raised This Month: $51 Target: $400
 12% 

Linux user account permissions issue


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
404UserNotFound
BANNED
Join Date: Dec 2011
Old 08-28-2013 , 22:12   Linux user account permissions issue
Reply With Quote #1

So I recently offered a friend the ability to host a server on my dedi (running Ubuntu 12.04), and set up his own account on the dedi which came with his own directory within the /home/ directory.

However, whenever a SourceMod plugin generates its own .CFG file, that new file gets its ownership set to "root" instead of being owned by his account.

I've been Googling around and can't figure out how to resolve this, other than me manually going in via WinSCP and changing the ownership to his account.

Anyone know how to fix this? Would it have something to do with me starting his server up for him under the "root" user?

Last edited by 404UserNotFound; 08-28-2013 at 22:13.
404UserNotFound is offline
Kjaer
Senior Member
Join Date: Oct 2009
Location: Canada
Old 08-28-2013 , 22:24   Re: Linux user account permissions issue
Reply With Quote #2

Quote:
Originally Posted by abrandnewday View Post
Anyone know how to fix this? Would it have something to do with me starting his server up for him under the "root" user?
This is likely it, I don't know specifics of the linux permission system, but services started under/by a certain user usually have that user's permissions, so that goes for any files created I assume. Try using a different way to start the server.
__________________
If you require server assistance add me!
Kjaer is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 08-28-2013 , 22:32   Re: Linux user account permissions issue
Reply With Quote #3

Quote:
Originally Posted by Kjaer View Post
This is likely it, I don't know specifics of the linux permission system, but services started under/by a certain user usually have that user's permissions, so that goes for any files created I assume. Try using a different way to start the server.
Alrighty, I'll give him a link to download PuTTY, and the necessary commands and such to start/stop it at will.
404UserNotFound is offline
captaindeterprimary
AlliedModders Donor
Join Date: Sep 2012
Old 08-29-2013 , 14:03   Re: Linux user account permissions issue
Reply With Quote #4

Make a script to run more scripts then have one of the scripts call to run under another user;

Code:
-master.sh
|-myservers.sh 
|-user2server.sh
Look here for what you need to use to run as another user, then try putting it in user2server.sh or what ever you want to call his server. Good luck.
__________________
Last edited by ; Today at 08:20 AM. Reason: Get rid of s
captaindeterprimary is offline
Mavrick4283
Veteran Member
Join Date: Apr 2010
Location: 127.0.0.1@root
Old 09-01-2013 , 03:51   Re: Linux user account permissions issue
Reply With Quote #5

How about not running the server as root and take his access to su and sudo away...
__________________
Mavrick4283 is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 09-01-2013 , 05:22   Re: Linux user account permissions issue
Reply With Quote #6

Quote:
Originally Posted by Mavrick4283 View Post
How about not running the server as root and take his access to su and sudo away...
Lol, the account doesn't have sudo, and only I ran my servers as root. I did run his as root at first, but I've since switched it over and given him the link to install PuTTY, as well as instructions for running the start/stop .SH files

Everything seems to be just fine now that he's running the server from PuTTY under his account, and I've since created my own account that isn't root so I'm not running my servers under root.
404UserNotFound is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode