Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 30th December 2010, 20:55
nsansari nsansari is offline
Junior Member
 
Join Date: Mar 2009
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default is shell user allowed to sudo ?

Hi All

Just a quick question hopefully. Up until now I've been serving simple websites using ISPConfig3, however a user has asked for shell access including sudo now.

The user asked me:Can u give me ssh access to the linux server ? and also enable me to create shell users in ispconfig?. Actually i want to enable some apache modules (like url rewrite) on sites?


So when I create a shell user with chroot shell jailkit, they just land in a blank directory and can then do a cd .. to get the root of their site.

Running sudo however gives

bash: sudo: command not found

Is this normal behaviour ??

Does the user really need shell/sudo to achieve what he is trying to do ? or is there another way of doing this ?

Any help much appreciated.

and seasons' greetings and happy holidays to All !!
Reply With Quote
Sponsored Links
  #2  
Old 31st December 2010, 14:18
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
Originally Posted by nsansari View Post
Running sudo however gives

bash: sudo: command not found

Is this normal behaviour ??
You must install the sudo package. Which distribution do you use?
Quote:
Originally Posted by nsansari View Post
and seasons' greetings and happy holidays to All !!
Thanks, I wish the same to you!
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 31st December 2010, 15:07
nsansari nsansari is offline
Junior Member
 
Join Date: Mar 2009
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the reply falko.

I'm on Ubuntu 8.04 LTS. When I login as root I can run sudo no problems. So does the user need to install sudo package separately ?
Reply With Quote
  #4  
Old 2nd January 2011, 20:51
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

Sudo is not available for chrooted users. If a user shall be able to use sudo, then it has to be a not chrooted user.

It makes not much sense to allow a normal user to activate or deactivate apache modules, as this affects all websites on that server and not just his own website. If he shall be able to configure apache, the he is the administrator of the server and has the root password anyway.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 20th January 2012, 16:45
talkingnews talkingnews is offline
Member
 
Join Date: Jan 2011
Posts: 65
Thanks: 15
Thanked 5 Times in 5 Posts
 
Default

Quote:
Originally Posted by till View Post
Sudo is not available for chrooted users. If a user shall be able to use sudo, then it has to be a not chrooted user.

It makes not much sense to allow a normal user to activate or deactivate apache modules, as this affects all websites on that server and not just his own website. If he shall be able to configure apache, the he is the administrator of the server and has the root password anyway.
Running into this same problem myself. Just seen the post above and changed the user to non-jailkit.

I want to do it this way for two reasons:
1: So that most of the time, I won't have to mess around with passwords, just use putty, pageant and a shortcut - double-click and I'm in.
But I want to also be able to sudo nginx restart or sudo bash if need be.

Sudo exists for the root user, but not for my shell user. How can I enable this?

I've tried symlinking and copying sudo to the user's bin file, as the root user to the ispc user, but then I get "sudo: error while loading shared libraries: libutil.so.1: cannot open shared object file: no such file or directory"

I thought it was good practice to ssh in as a non-root user then sudo. Am I doing something wrong here?
Reply With Quote
Reply

Bookmarks

Tags
shell user, sudo, url rewriting

Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
remove option to create shell user? vmos2 General 2 11th February 2010 13:23
Sending emails with custom FROM email address merisor Installation/Configuration 4 8th February 2010 16:27
chroot ssh shell user in debian lenny 5.0 afandino Installation/Configuration 1 17th June 2009 21:19
Anything I can do against illegal login-requests? schmidtedv Installation/Configuration 17 7th November 2008 09:25
log files cruz Technical 3 15th May 2007 14:35


All times are GMT +2. The time now is 05:31.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.