Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 9th April 2012, 19:26
lobius lobius is offline
Member
 
Join Date: Apr 2012
Posts: 41
Thanks: 1
Thanked 0 Times in 0 Posts
Default SSH users can't use unzip

They can use tar just fine.

The problem is that joomla backs up to a zip file.

Is there a file I can edit to allow this command?

Also, it seems that the FTP user can see things in their particular root that they cannot see in SSH.

All directories list(ls) under the user root of FTP. Nothing lists in the user root of SSH.

How do I get SSH to show directories in the user root?
Reply With Quote
Sponsored Links
  #2  
Old 10th April 2012, 20:59
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

Does the unzip command exist? What's the output of
Code:
which unzip
?
__________________
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 10th April 2012, 21:07
lobius lobius is offline
Member
 
Join Date: Apr 2012
Posts: 41
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Yes, I know it is crazy but it does, in fact, exist.

/usr/bin/unzip

I went around the problem by opening the archive on my desktop and sending it to the server. Everything is local so it went very quickly.

sudo su asks me for the password to web1's account.

What would that be? Client 1's FTP, shell… I can't figure it out.
Reply With Quote
  #4  
Old 11th April 2012, 19:56
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

sudo su asks for the password of the user as which you are currently logged in.
__________________
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
  #5  
Old 13th April 2012, 03:43
lobius lobius is offline
Member
 
Join Date: Apr 2012
Posts: 41
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Of course, falko. That is what it should be. It seems, however, that when a user logs in to their SSH account created by ISPconfig3, there's a different password.

Maybe I missed it.

Code:
login as: rex_SSH
rex_SSH@192.168.1.107's password:
Welcome to Ubuntu 11.10 (GNU/Linux 3.0.0-12-generic-pae i686)

 * Documentation:  https://help.ubuntu.com/

  System information as of Thu Apr 12 19:54:13 EDT 2012

  System load:  0.05              Processes:           97
  Usage of /:   3.1% of 54.29GB   Users logged in:     0
  Memory usage: 54%               IP address for eth0: 192.168.1.107
  Swap usage:   14%

  Graph this data and manage this system at https://landscape.canonical.com/
Last login: Tue Apr 10 12:10:50 2012 from 192.168.1.124

web1@rule303:~$ sudo su
[sudo] password for web1:
Sorry, try again.
[sudo] password for web1:
Reply With Quote
  #6  
Old 13th April 2012, 16:45
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

Is it possible that rex_SSH uses the same user ID as web1? Please check /etc/passwd.
__________________
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
  #7  
Old 13th April 2012, 17:11
lobius lobius is offline
Member
 
Join Date: Apr 2012
Posts: 41
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Here are the lines in question…

Code:
web1:x:5004:5005::/var/www/clients/client1/web1:/bin/false
rex_SSH:x:5004:5005::/var/www/clients/client1/web1:/bin/bash
The only one real difference looks like the ends with false vs. bash.

What I'm trying to figure out is the permissions of a shell user without sudo. It's a good sign that they can't do that but… They have to be able to do some tasks or there is no point to it. Right now, it looks more restrictive than surveillance state monkeys like go daddy.
Reply With Quote
  #8  
Old 14th April 2012, 12:08
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

Both users have the same ID. I suggest you recreate the rex_SSH user with an unused ID (best below 5000).
__________________
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
  #9  
Old 14th April 2012, 14:55
lobius lobius is offline
Member
 
Join Date: Apr 2012
Posts: 41
Thanks: 1
Thanked 0 Times in 0 Posts
Default

How did they both get the same ID? Is that a bug?

I set it up in a ISPconfig3.
Reply With Quote
  #10  
Old 16th April 2012, 23:49
lobius lobius is offline
Member
 
Join Date: Apr 2012
Posts: 41
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

Take a look at this…

Code:
chris_dice_SSH@tradersedgedice.com:~$ ls
chris_dice_SSH@tradersedgedice.com:~$ cd web
bash: cd: web: No such file or directory
chris_dice_SSH@tradersedgedice.com:~$ cd /web
chris_dice_SSH@tradersedgedice.com:/web$ ls
LICENSE.txt    configuration.php    index.php       media       tmp
README.txt     custom_code          installation    modules     web.config.txt
administrator  error                joomla.tar.bz2  plugins
cache          eurofxref-daily.xml  language        robots.txt
cli            images               libraries       stats
components     includes             logs            templates
chris_dice_SSH@tradersedgedice.com:/web$ sudo chown -R www-data:www-data
bash: sudo: command not found
chris_dice_SSH@tradersedgedice.com:/web$
Can not executed basic staff to get joomla started.

What is the point of shell for clients?
Reply With Quote
Reply

Bookmarks

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
cannot create new ssh users for one client wildnux Server Operation 0 9th February 2011 01:10
Problem with Clamav + samba configuration wammy28 HOWTO-Related Questions 8 31st January 2009 19:12
Cacti and ISPConfig: Monitoring Tool VMartins Tips/Tricks/Mods 11 9th August 2008 18:37
Can't enable SSH access for users TheFuzzy0ne Installation/Configuration 3 8th August 2008 16:53
Junk mail and spamassassin... sthompson Installation/Configuration 4 27th December 2006 16:11


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


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