[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] telnet access to users?
- Subject: Re: [cobalt-users] telnet access to users?
- From: "Steven Werby" <steven@xxxxxxxxxxxx>
- Date: Thu Jan 20 05:58:52 2000
Liz <daldog@xxxxxxxx> wrote:
> I have
> a web site design client who's on someone else's server and
> each time I key in one too many "cd ..'s", that server
> prompts me with a "restricted access" notice once I've
> attempted to go beyond that user's assigned directory.
Most of my Linux experience is on Cobalt boxes, but I thought of a potential
solution. Create a .profile in each user's home directory (or wherever the
global user profile is) with aliases to alternate versions of "ls" and
whatever else you need to control their access to the rest of the
filesystem. Use an alias like: alias ls="/pathto/myls". Use "pwd" and
positional parameters like "$1" to create a bash script that compares the
user's home directory to the location they want to list directory contents
for. Make it user executable and you should be able to control what they
can see by running "ls". Or move "ls" to a new location and create an "l"
script and control usage of the real ls. You might not want them to be able
use "cd" to navigate through the filesystem, but since "cd" isn't a file or
I just can't find where it is I don't know how you would control that.
Let me know if this works and/or whether it's feasible.
Steven {steven@xxxxxxxxxxxx}