shell access, please help!


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers shell access, please help!
# 1  
Old 11-17-2005
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  
Old 11-18-2005
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  
Old 11-18-2005
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  
Old 11-18-2005
Look in the frequently asked questions section, there is a post comparing shells and their functionality there.
# 5  
Old 11-18-2005
okay thanks, will check now
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

How to access a C function from a shell script?

Hi, I'm new to shell programming. And I'm having issues with accessing a C file with shell. Given a C code which contains functions and Lets say each function contains a multiplication instruction. So I need to extract the size of the operands (a,b) of each multiplication instruction in bits. How... (3 Replies)
Discussion started by: beginner_99
3 Replies

2. Red Hat

No shell access to sftp user

I have created two users on our ftp server. They will use sftp to connect this server. But I do not want them to give direct ssh access. If I give /bin/false shell, sftp will not work. If I give /bin/nologin, it fails with below messages # sftp trdeo@bd01.xxx.com Connecting to bd01.xxx.com...... (6 Replies)
Discussion started by: solaris_1977
6 Replies

3. Solaris

Solaris Shell - Remote access

Hi all; I'm looking for free access to the Solaris operating system. I have no way to install at home (even on a virtual machine). I been developing BOINC project (OProject@Home: site: oproject.goldbach.pl). I would like to compile and test programs on Solaris. Can someone provide a... (9 Replies)
Discussion started by: Rysiu
9 Replies

4. AIX

ftp access without shell access

Hi all, I'm using AIX v 5.3 I want to create system users to access through ftp or sftp and restrict those users into specific directory and don't traverse the whole file system just to be restricted within a directory and don't get shell access . i don't want to use any other third party... (7 Replies)
Discussion started by: h@foorsa.biz
7 Replies

5. Shell Programming and Scripting

access db2 from shell script

How to connect to db2 through shell script using cygwin? (0 Replies)
Discussion started by: supriyat
0 Replies

6. UNIX for Advanced & Expert Users

Webmail access using shell scripting

Hi all, Is it possible that I can access a webmail inbox using unix shell scripting? If that is possible, can you please give me some tips so that i can proceed further? Thanks, Geetha (6 Replies)
Discussion started by: iamgeethuj
6 Replies

7. AIX

Find all users with shell access

Hi, how do I find all users currently setup with shell access. Thanks in advance. Gav (1 Reply)
Discussion started by: LionFeen
1 Replies

8. UNIX for Dummies Questions & Answers

Shell access

Hey guys, Ive recently started playing around on public access unix systems like sdf.lonestar.org. Ive always been interested in UNIX, but Ive never really had the time to do anything with it until now. What i want to know is advice on free (or cheap) OS's to use on new unix system, with my end... (2 Replies)
Discussion started by: CerialPhreak
2 Replies

9. Shell Programming and Scripting

shell variable access

Hi I want to do the following: 1. Create a number of Gloabla varibale "ROUTE_IP_xx" based on a counter. As xx sould be from 1-10. ie ROUTE_IP_1 ROUTE_IP_2 . . ROUTE_IP_10 2. I want to initalize all of these variable to 0.0.0.0 ie ROUTE_IP_1='0.0.0.0' 3. I... (2 Replies)
Discussion started by: sabina
2 Replies

10. Shell Programming and Scripting

Shell Access

Hi, i would like to put my shell on a server, but it said internal server error, i think the script is totally wrong. Can somebody please give me a simple script with post data as Thanks TH (10 Replies)
Discussion started by: turbohacker
10 Replies
Login or Register to Ask a Question