[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: Kris Dahl <kris@xxxxxxxxxxxxx>
- Date: Thu Jan 20 09:09:27 2000
on 1/20/00 5:58 AM, Steven Werby at steven@xxxxxxxxxxxx wrote:
> 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.
Can't they just edit the .profile, log back in and eliminate your
'security'?
-k