hi, i have 10 websites on a particular server. Each site has its own user and is housed on the user's home directory. Currently, to maintain each site i ssh into it as that user and do the work. I also have to have root ssh'd in one terminal for restarting apache etc. This means keeping 11 terminals open and remembering which is which. Also when the net connection goes down i have to do a lot of work to relogin on each terminal. How safe would it be if i just used one terminal and su from root for each user as and when required. What are the best practices for such a setup?
On Mon, 2006-02-06 at 09:35 +0530, Kenneth Gonsalves wrote:
hi, i have 10 websites on a particular server. Each site has its own user and is housed on the user's home directory. Currently, to maintain each site i ssh into it as that user and do the work. I also have to have root ssh'd in one terminal for restarting apache etc. This means keeping 11 terminals open and remembering which is which. Also when the net connection goes down i have to do a lot of work to relogin on each terminal. How safe would it be if i just used one terminal and su from root for each user as and when required. What are the best practices for such a setup?
I think GNU screen is for you :).
http://www.kuro5hin.org/story/2004/3/9/16838/14935 <--- More here
Regards,
ah
On Monday 06 Feb 2006 9:54 am, Amol Hatwar wrote:
work to relogin on each terminal. How safe would it be if i just used one terminal and su from root for each user as and when required. What are the best practices for such a setup?
I think GNU screen is for you :).
kewl
On Mon, Feb 06, 2006 at 09:35:50AM +0530, Kenneth Gonsalves wrote:
etc. This means keeping 11 terminals open and remembering which is which. Also when the net connection goes down i have to do a lot of work to relogin on each terminal. How safe would it be if i just used one terminal and su from root for each user as and when required. What are the best practices for such a setup?
Two parts: sudo and screen.
I will now be called an unhelpful idiot for not spelling out the solution. List has gone to the dogs.
On Monday 06 Feb 2006 7:08 pm, Satya wrote:
How safe would it be if i just
used one terminal and su from root for each user as and when required. What are the best practices for such a setup?
Two parts: sudo and screen.
I will now be called an unhelpful idiot for not spelling out the solution. List has gone to the dogs.
nope, an answer has to be tuned with regard to the OP. Since i was asking for a policy, and you gave the policy, its fine. My only caveat is, for newbies, one should be a bit more elaborate. After all the essence of fishing is to lure the fish, hook it, gently play with it and only reel it in when it is firmly hooked. Impatience at the early stage would only result in it wriggling off the hook and escaping