HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

user access rights

 
SOLVED
Go to solution
Muhammad Ahmad
Frequent Advisor

user access rights

Hi,

GOOD DAY!

can any one share with me the procedure to restrict an o/s user (which currently have rights to run the scripts which uploads the data in the oracle database), so that he can't move outside of his home directory?

furhter more he can continue the scripts running job in the normal fashion.


Regards,

-Br
Ahmad.

6 REPLIES
Solution

Re: user access rights

The restricted shell rsh or rksh will not allow the cd command.

But he can't invoke scripts with a "/" in them, unless in his PATH or alias.
Johnson Punniyalingam
Honored Contributor

Re: user access rights

Hi Ahmad,

Can please try out this


limit the user to his home directory by setting up the
directory in this form:

/home/username/./


Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Jeeshan
Honored Contributor

Re: user access rights

yeah, restricted shell or chroot directory
a warrior never quits
Muhammad Ahmad
Frequent Advisor

Re: user access rights

Hi,

Dennis Handly:
you means, by configuring rsh/krsh and setting the PATH or alias.
i will try it.
thanks.

Johnson:

normally the user home directory is /home/username.
by setting the user home directory instead of /home/username to /home/username/./ will work. did u mean that ?

Ahsan:

i have used the chroot to configure the ftp restricted access. and it works for me fine.
but here i need to give the shell access but restricted to user's home directory plus the rights to execute the scripts.
can chroot will serve the purpose?

Thanks every one.
Johnson Punniyalingam
Honored Contributor

Re: user access rights

Yes,

Example:-

/home/john/

Change to

/home/john/./

This should restrict user to change directory becoz of the /./

Thx,
Johnson
Problems are common to all, but attitude makes the difference

Re: user access rights

>you means, by configuring rsh/rksh and setting the PATH or alias.

Yes, changing the user's shell to to those.