restrict sudo and chown in specified directory


 
Thread Tools Search this Thread
Operating Systems Solaris restrict sudo and chown in specified directory
# 1  
Old 02-05-2012
Question restrict sudo and chown in specified directory

Hi Dears,

I have one requirement like this:
  1. general user A can execute command C with root privilege by sudo configuration
  2. some folders and files are created during the command C execution
  3. user A cannot access those folders and files because the owner is root user, so I want the user A can execute chown command but restrict the scope as the parent directory created by the command C.
How to make the bold statement the truth?

Thanks!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Restrict sudo -i

Hi, I wanted add a group to the sudoers file so they can run sudo commands and blocked su command but it seems they can just run sudo -i to switch to root which defeats my purpose. Is it possible to block sudo -i with the help of sudoers file or any other way. Please advise. The below... (1 Reply)
Discussion started by: Jartan
1 Replies

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

3. Shell Programming and Scripting

Chmod working in sudo run script but chown isn't

My git user has permission in sudoers to run a wrapper script to move files into my webroot. Everything is working fine except for the chown line. After the script has run, the files ar still root:root instead of apache:apache. Scratching my head...:confused: #!/bin/sh echo echo "****... (4 Replies)
Discussion started by: dheian
4 Replies

4. Shell Programming and Scripting

excluding a directory with chown, chmod

does anyone know how to exclude a directory with chown or chmod? im trying to do something like this chown $username:$username $directory/* chown $username:$username $directory/.* chown $username:$username $directory and find $directory/* -type f -exec... (1 Reply)
Discussion started by: vanessafan99
1 Replies

5. Ubuntu

Restrict SUDO Access

Linux ubuntu 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux Hi Folks, Please help me. I am bit struck here. Here is the OS info. Linux ubuntu 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux I have a... (17 Replies)
Discussion started by: explorer007
17 Replies

6. OS X (Apple)

sudo chown -R `whoami` /usr/local

I was following a tutorial on installing Homebrew and I changed the ownership of /usr/local/ to me. Now McAfee Security won't start This is the exact line I typed: sudo chown -R `whoami` /usr/local Then I tried to fix it with: sudo chown -R root /usr/local I still can't start mcafee. It say... (7 Replies)
Discussion started by: chancho
7 Replies

7. Shell Programming and Scripting

chown of a Directory

Hi All, I need your help in changing the owner of a directory. I have a created a direcotry TEST with user "abc"....for the group "ftp". Now i wnated to change the owner of the directory TEST. i used the below command to do so: chown abc:sftp TEST This is giving me an error... (5 Replies)
Discussion started by: ch33ry
5 Replies

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

9. UNIX for Dummies Questions & Answers

chown -R under root directory

Hi I executed command "chown -R xxx:xxx /" with user root... and it was too late when I found the mistake. Ownership of some files under the root directory had already become xxx:xxx. Is there a way that can recovery the ownership of all my files back to the point where they were? I really thanks. (2 Replies)
Discussion started by: password636
2 Replies

10. UNIX for Dummies Questions & Answers

Restrict my search to current directory.

Hi every1, There is a folder with .lst files which has email id's of our project group. I want to find files which has my email id starting with sachin but i dont want find command to search subdirectories. I have read about prune but i didnt understand that. I am pretty new in this field.... (7 Replies)
Discussion started by: sachin.gangadha
7 Replies
Login or Register to Ask a Question
bioutil(1)						    BSD General Commands Manual 						bioutil(1)

NAME
bioutil -- tool for viewing/changing Touch ID configuration and listing/deleting enrolled fingerprints SYNOPSIS
bioutil {-r | -w [-f { 0 | 1 }] [-u { 0 | 1 }] [-a { 0 | 1 }]} | [-c] | [-p] | [-d <uid>] [-s] DESCRIPTION
bioutil provides the possibility of viewing and changing Touch ID configuration, both system-wide and user-specific. It also allows listing and deleting enrolled fingerprints. OPTIONS
-r, --read Read Touch ID configuration. -w, --write Write Touch ID configuration. -s, --system Indicates that system-wide configuration is to be read/written (user-specific configuration is the default) or that a system-wide list/delete operation is to be performed. -f, --function Enables (1) or disables (0) overall Touch ID functionality (system-wide configuration only). -u, --unlock Enables (1) or disables (0) Touch ID for unlock. -a, --applepay Enables (1) or disables (0) Touch ID for ApplePay (user-specific configuration only). -c, --count Provides number of enrolled fingerprints of the current user or of all users (when run with -s as an administrator) -p, --purge Deletes all enrolled fingerprints of the current user or of all users (when run with -s as an administrator) -d, --delete Deletes all enrolled fingerprints of the user with given user ID (must be run as an administrator) EXAMPLES
bioutil -r Reads Touch ID configuration for the current user. bioutil -r -s Reads system-wide Touch ID configuration. bioutil -w -u 1 Enables Touch ID for unlock for the current user. sudo bioutil -w -s -u 0 Disables Touch ID for unlock for the whole system. bioutil -c Prints the number of enrolled fingerprints of the current user. bioutil -p Deletes all enrolled fingerprints of the current user. sudo bioutil -c -s Prints numbers of enrolled fingerprints of all enrolled users. sudo bioutil -p -s Deletes all fingerprints from the system. sudo bioutil -s -d 501 Deletes all fingerprints of user 501. Darwin May 31, 2019 Darwin