Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Restrict command for an user ? Post 302383687 by hongwei on Wednesday 30th of December 2009 10:02:11 PM
Old 12-30-2009
Quote:
Originally Posted by camus
Can you please explain about chroot and what is restricted shell ? In /etc/passwd the shell of viewer is /bin/bash

@alister : I checked the $PATH and yes it is /home/viewer/bin. And using the full path of other command has no problem. But I still have one question why I can use cd and echo command ( not full path ) while they're not in /home/viewer/bin . Because they're Built-in command ?

Thanks for help !!
Camus
yes, you get it. cd and echo commands are implemented as part of shell itself, that is so called shell built-in. And thus these builtin command are always available in a running shell and have nothing to do with PATH envroment variable
 

10 More Discussions You Might Find Interesting

1. Solaris

restrict a user to certain command

Hi all, I am using Sun OS 5.10. I am new to Unix. Is there some way to restrict a specific user to certain command say "/usr/bin/more" ?? for example: I want that user1 can execute more command & user2 can't. Can we somehow edit .profile file in the home directory of user to achieve... (1 Reply)
Discussion started by: vikas027
1 Replies

2. Solaris

How to restrict the perticular command to user

Hi all, I want to restrict the perticular command to user. ex: CD, CP, mv etc ., "A" user cannot user CD, CP, mv commands from his home directory. so please let me know the procedure how to restrict the commands access to user "A". I really thankfull to all.... (3 Replies)
Discussion started by: murthy76
3 Replies

3. AIX

New user and restrict path

Hello I have a question in Aix 5.3 can I create a user, that only can see a specify path. I mean the user log in the default path its /home/newuser he type cd the path that need to check /example/directory_check but if he wants to go to / or any other path. we can not do this. I only... (1 Reply)
Discussion started by: lo-lp-kl
1 Replies

4. Shell Programming and Scripting

Restrict modification of a file while it is already in use by another user?

How to restrict modification of a file while it is already in use by another user? If a file is in use by one user account, how to restrict it so that no one else can change it until its closed by the first user? (3 Replies)
Discussion started by: bdiwakarteja
3 Replies

5. Red Hat

Restrict user to a particular directory

Hi I have a Fedora10 server and i need a particular user to view files only in a particular folder. All other files in other folders having "read" permission for all shouldn't be accessible to this user. Please let me know if ther's a way. Thanks, HG (5 Replies)
Discussion started by: Hari_Ganesh
5 Replies

6. UNIX for Dummies Questions & Answers

Restrict user access.

Hi All, How can we restrict a particular user access to a particular shell in solaris 10. Thanks in Advance. (5 Replies)
Discussion started by: rama krishna
5 Replies

7. Red Hat

Restrict user access

Hi there I have an application user on my system that wants accesses to these file systems as such: rwx: /SAPO /SAPS12 /R3_888 /R3_888B /R3_888F /R3_888R r: /usr/sap these are the existing FS permissions:ownerships: # ls -ld /SAPO (9 Replies)
Discussion started by: hedkandi
9 Replies

8. AIX

How to restrict user to a particular directory?

hi, I want to restrict some user access to only 1 directory (including all sub-directories/files in it). can you please explain me, how can we do this? example; Filesystem GB blocks Used Free %Used Mounted on /dev/hd4 2.61 1.02 1.59 40% / /dev/hd2 ... (7 Replies)
Discussion started by: aaron8667
7 Replies

9. UNIX for Dummies Questions & Answers

Restrict a user from Executing particular command

hi how to restrict a user ro run rm command. In this scenario we have a user/group has below in sudoers user ALL=(ALL) ALLis there a way to restrict the user from just executing rm command (9 Replies)
Discussion started by: robo
9 Replies

10. HP-UX

Restrict ssh for particular user

Dear Concern, We want to restrict ssh for particular user "oracle". Our HP UX version is as below. Please advise. # uname -a HP-UX tabsdb02 B.11.31 U ia64 2963363594 unlimited-user license (2 Replies)
Discussion started by: makauser
2 Replies
Qt Components(3)                                                       SoQt                                                       Qt Components(3)

NAME
Qt Components - Classes class SoQtGLWidget The SoQtGLWidget class manages OpenGL contexts. This is the basic, abstract component class which sets up an OpenGL canvas for its subclasses. " class SoQtRenderArea The SoQtRenderArea class adds scenegraph handling and event management. The SoQtRenderArea class is a component that adds scenegraph management and input device event handling to the SoQtGLWidget component. " class SoQtConstrainedViewer The SoQtConstrainedViewer class is the superclass for viewers with constrains on the viewpoint. This abstract viewer class adds new methods to keep the camera in an upright position according to some arbitrary up-direction. The up- direction can be decided by either the application programmer (by using SoQtConstrainedViewer::setUpDirection()) or the end-user, through interaction mechanisms defined by the subclasses. " class SoQtExaminerViewer The SoQtExaminerViewer class is a 3D-model examination viewer. This class is the viewer considered to be the most 'general purpose' viewer, and it is often used in rapid prototyping to examine simple models aswell as complete scenes (although for the latter, you might be better off with one of the other viewer classes). " class SoQtFullViewer The SoQtFullViewer class adds some user interface components to the viewer canvas. The SoQtFullViewer is an abstract viewer class which extends it's superclass (the basic SoQtViewer class) with two major user interface additions: " class SoQtPlaneViewer The SoQtPlaneViewer class is for examining 3D models by moving the camera in orthogonal planes. The SoQtPlaneViewer is a viewer that is useful for 'CAD-style' applications, where you want the end-user to examine your model with the viewpoint set from one of the three principal axes. " class SoQtViewer The SoQtViewer class is the top level base viewer class. This is an abstract class, which adds the following features to it's SoQtRenderArea superclass: convenient methods for camera handling, an automatic headlight configuration. " Author Generated automatically by Doxygen for SoQt from the source code. Version 1.5.0 Sun Dec 11 2011 Qt Components(3)
All times are GMT -4. The time now is 09:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy