Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Is there a way to restrict a user (owner) to execute scripts from a specific directory Post 303043078 by karumudi7 on Friday 17th of January 2020 01:00:57 PM
Old 01-17-2020
Finally, we pushed the change and it worked! Thank u.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

CRON job to execute all scripts in a directory

Hi everyone: I'm trying to make a CRON job that will execute Fridays at 7am. I have the following: * 7 * * 5 I've been studying up on CRON and I know to have this in a file and then "crontab filename.txt" to add it to the CRON job list. The CRON part I believe I understand, but I would... (6 Replies)
Discussion started by: Annorax
6 Replies

2. Shell Programming and Scripting

How to restrict the number of commands user can execute

Hi all, Is there a way to prevent users from being able to execute commands less a select few? For instance, I wish to allow the user to be only able to execute 1 command, which is exec a.sh. He should not be able to do simple stuff such as ls, cd, rm, cat, etc. Can this be achieved? ... (1 Reply)
Discussion started by: rockysfr
1 Replies

3. UNIX for Advanced & Expert Users

Restrict FTP access to a single directory for only one user.

Hi All, It will be very great if you can help me in this issue. Thanks in advance. I need to enable FTP on a solaris9 server. I need to create a new user some "xxxxxx" and he can only FTP the files to and from between /tftpboot directory and network devices. Other users should not... (8 Replies)
Discussion started by: santhoshkumar_d
8 Replies

4. UNIX for Dummies Questions & Answers

how do U restrict a user to a single directory?

specifically - I don't need to restrict a user to a single directory - but I want them to be "ROOTED" to their home directory. so if my home directory is /home/onlyme when I login - if I do a pwd - I want to see: / but in real life I will be in /home/onlyme - it just appears as root to... (10 Replies)
Discussion started by: itobenon
10 Replies

5. UNIX for Dummies Questions & Answers

restrict one user to see only his home directory in his profile

Hi I need to restrict one user to see only his home directory and one more directory how i can do this in his profile. The OS is Red hat linux I create a user -- tec and group calle --tec one the user log in he will see /home/tec and he need to see /opt/load this dirctory... (6 Replies)
Discussion started by: aboorkuma
6 Replies

6. Linux

Restrict User to only execute the file.

Hi Gurus , I hope you are doing great . Other than owner of the file , OTHERS and GROUP should be restricted from read or write a file created by the owner. OTHERS and GROUP should be only allowed to execute the file. Thanks in advance. (8 Replies)
Discussion started by: palanisvr
8 Replies

7. 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

8. Solaris

Restrict FTP User to a Directory

I am using Solaris 10 on SPARC. SunOS ddw 5.10 Generic_139555-08 sun4u sparc SUNW,SPARC-Enterprise I have put some text files in a directory '/u01/network' I want to create a ftp user which can just read the files in the network directory. The ftp user shouldn't be able to navigate or see... (4 Replies)
Discussion started by: fahdmirza
4 Replies

9. Solaris

How to restrict user to a specific directory in solaris 10

Hi all, I want to create a new user and grant him ONLY transfer files access to a specific directory where he can only upload and read the files. He should be restricted to this activity only. Regards (6 Replies)
Discussion started by: gilldn
6 Replies

10. 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
strchg(1M)																strchg(1M)

NAME
strchg, strconf - change or query stream configuration SYNOPSIS
module2]... [ module] file DESCRIPTION
The and commands are used to change or query the configuration of the stream associated with the user's standard input. The command pushes modules on and/or pops modules off the stream. The command queries the configuration of the stream. Only the superuser or owner of a STREAMS device may alter the configuration of that stream. strchg Options The command uses the following options: pushes modules onto a stream. The modules are pushable STREAMS modules as defined by module1, module2, and so on. The modules are pushed in order. That is, module1 is pushed first, module2 is pushed second, etc. With the option alone, pops the topmost module from the stream. With the and options, all the modules above the topmost driver are popped. With the and module options, all modules above but not including module are popped off the stream. The and options are mutually exclusive. The user can specify a file that contains a list of modules representing the desired configuration of the stream. Each module name must appear on a separate line where the first name represents the topmost module and the last name represents the module that should be closest to the driver. The command will determine the current configuration of the stream and pop and push the necessary modules in order to end up with the desired configuration. The and options are mutually exclusive. strconf Options Invoked without any arguments, prints a list of all the modules in the stream as well as the topmost driver. The list is printed in one name per line where the first name printed is the topmost module on the stream (if one exists) and the last item printed is the name of the driver. The command uses the following options: Only the topmost module (if one exists) is printed. checks if the named module is present on the stream. If so, prints the message, and returns zero. If not, prints the message, and returns a non-zero value. The and options are mutually exclusive. Notes If the user is neither the owner of the stream nor the superuser, the command will fail. If the user does not have read permissions on the stream and is not the superuser, the command will fail. If modules are pushed in the wrong order, one could end up with a stream that does not function as expected. For ttys, if the line disci- pline module is not pushed in the correct place, one could have a terminal that does not respond to any commands. DIAGNOSTICS
returns zero on success. It prints an error message and returns non-zero status for various error conditions, including usage error, bad module name, too many modules to push, failure of an on the stream, or failure to open file from the option. returns zero on success (for the or option, "success" means the named or topmost module is present). It returns a non-zero status if invoked with the or option and the module is not present. It prints an error message and returns non-zero status for various error condi- tions, including usage error or failure of an on the stream. EXAMPLES
The following command pushes the module on the stream associated with the user's standard input: The following command pops the topmost module from the stream associated with The user must be the owner of this device or be superuser. If the file, contains the following: then the command will configure the user's standard input stream so that the module is pushed over the driver, followed by and closest to the stream head. The command with no arguments lists the modules and topmost driver on the stream. For a stream that only has the module pushed above the ports driver, it would produce the following output: The following command asks if is on the stream: and produces the following output while returning an exit status of 0: FILES
NLS catalogs NLS catalogs SEE ALSO
streamio(7). strchg(1M)
All times are GMT -4. The time now is 07:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy