The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Any way to access shared object using shell yhacks Shell Programming and Scripting 2 05-19-2008 06:43 AM
PHP Shell, for secure remote access when SSH isn't available iBot UNIX and Linux RSS News 0 02-19-2008 05:50 AM
Shell access CerialPhreak UNIX for Dummies Questions & Answers 2 08-04-2006 04:07 PM
shell variable access sabina Shell Programming and Scripting 2 02-24-2005 11:43 AM
Shell Access turbohacker Shell Programming and Scripting 10 03-18-2004 09:39 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-17-2005
genzai genzai is offline
Registered User
  
 

Join Date: Nov 2005
Posts: 3
shell access, please help!

Hello, i am new to unix.
I have a new dedicated server, and i am using SSH to shell to it.
it seems i have the option in my plesk control to give certain levels of shell access to a user. Can you please tell me what the following mean:

/bin/sh
/bin/bash
/sbin/nologin
/bin/ash
/bin/bsh
/bin/ksh
/usr/bin/ksh
/usr/bin/pdksh
/bin/tcsh/
/bin/csh
/bin/bash (chrooted)
/bin/rbash

thank you all in advance
  #2 (permalink)  
Old 11-18-2005
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
Here you go:
/bin/sh, /bin/bash, /bin/ash, /bin/bsh, /bin/ksh, /bin/csh, /bin/tcsh - these are all normal shells. Will give the user the right to run any command (with their own privileges, ofcourse).

/usr/bin/ksh - this is most probably the same as /bin/ksh. On many systems, /bin is a link to /usr/bin. If that is the case, you will also find /usr/bin/sh, and so on.

/usr/bin/pdksh - this is the open source implementation of ksh. I have never used this, but I read somewhere that some features of ksh have not yet been implemented yet.

/sbin/nologin - any user that has this shell will not be able to login at the login prompt. The only way to 'become' this user is to use su. You might see this where webservers are run as user nobody. In this case, it would not be a good idea to let someone login as nobody as they will gain access to the webserver files.

/bin/bash (chrooted) - this is a version of bash that calls chroot before it runs. Again, I have never used/seen this. The chroot command basically changes the root filesystem to the path specified. The new root is then used for all file paths that start with '/'. See the man page here for more details.

/bin/rbash - this is a restricted version of bash. Here is a link to the man page of bash. You can look up the section under Restricted Shell for details on rbash.

I think that covers all the shells. Cheers.
  #3 (permalink)  
Old 11-18-2005
genzai genzai is offline
Registered User
  
 

Join Date: Nov 2005
Posts: 3
Thanks!

Wow, thank you for the quick reply. Very good to know. But is there no difference between all the /bin/sh, /bin/bash, /bin/ash, /bin/bsh, /bin/ksh, /bin/csh, /bin/tcsh?

are they just giving access to a different set of commands? And if so which set has the most?

One thing i am having trouble with is editing or uploading files to most every folder beneath the webroot. that is, I seem to have access to the 'cgi-bin' folder and a folder called 'private' but almost every other folder beneath the webroot 'httpdocs' folder cant be modified by me. some cant even be read.
I have been trying to work on them through ftp and sftp. i also have a ssh shell but i dont see a way to upload anything using ssh.

any ideas how i can set permissions or modify access to these folders?
Thanks again
  #4 (permalink)  
Old 11-18-2005
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,190
Look in the frequently asked questions section, there is a post comparing shells and their functionality there.
  #5 (permalink)  
Old 11-18-2005
genzai genzai is offline
Registered User
  
 

Join Date: Nov 2005
Posts: 3
okay thanks, will check now
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 05:14 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0