Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Dan on September 26, 2003, 01:45:38 PM

Title: How to get non-root access with coomand line?
Post by: Dan on September 26, 2003, 01:45:38 PM
I need to install a software package wgich requires to be installed as a non root user - trouble is when I su to another user I get binned from the command line - any workaround?
Title: Re: How to get non-root access with coomand line?
Post by: Michiel on September 26, 2003, 01:55:59 PM
Dan wrote:
>
> I need to install a software package wgich requires to be
> installed as a non root user - trouble is when I su to
> another user I get binned from the command line - any
> workaround?

Search contribs.org for "shell access" and you'll find a contrib from Daniel van Raay that does what you need.
Title: Re: How to get non-root access with coomand line?
Post by: Robert L. Baer on September 26, 2003, 08:38:09 PM
There is'nt really any need to install a contrib to achieve this.

chsh  -s /bin/bash

issued as root will change the shell for username to bash, thus enabling the user to logon to a console.

chsh  -s /bin/sshell

changes back to the default behaviour.
Title: Re: How to get non-root access with coomand line?
Post by: Andrew Gray on October 01, 2003, 02:06:14 AM
In other words, the chsh command changes the shell of non-root users to something that will allow them to log in, otherwise they will always be kicked.  you can also achieve this by editing the /etc/passwd file and manually changing the shell.  But running the command line is better.  

eg:

chsh -s /bin/bash andygray

(where andygray is my non-root user) Now I can run as root, the su command.  Eg:

su - andygray

and now we are all happy

Cheers,

- Andy Gray
Title: How to get non-root access with coomand line?
Post by: dr_rude on May 04, 2005, 10:00:43 AM
good day,

i need guide here guys. let say, i want non-root user just can access certain directory or when the non-root user access thru putty it will be direct to /home/e-smith/file/ibay/Primary/html.

how to do that?