Sponsored Content
Top Forums Shell Programming and Scripting Access rights for users - list Post 302555143 by zaxxon on Wednesday 14th of September 2011 03:26:04 AM
Old 09-14-2011
This will create a file for each user:
Code:
for a in $(cut -d: -f1 /etc/passwd); do find / -user $a -exec ls -dla {} \; >> $a.out; done

Since this will be awful much output, you might need some space in the place you write those files to.

So it turns out to be no AIX specific question - moving the thread.

Last edited by zaxxon; 09-14-2011 at 04:31 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unix access rights

Hi, Is it true that if I am not the root I can not select access permissions to a file that I own so that my friend (who also isn't the root) can access that file? And is it true that the only way to accomplish it is to ask the root to "put" my friend into "my" group? Then I could simply set... (1 Reply)
Discussion started by: rudo
1 Replies

2. UNIX for Dummies Questions & Answers

file access rights?

Hi, I want to execute a customised process like rating engine using a shell script from a directory other than the directory where the customizes process is placed. I have tried it in the following way...and faced a issue when shell script is available in directory /dir1/ and customized... (1 Reply)
Discussion started by: vkishore.btw
1 Replies

3. Solaris

List users who have administrative access

Hi , Could you please give me the commands for the following. 1.list users who have direct access to solaris database at os-level 2.list users who have administrative access at os-level in solaris Please also let me know how to figure out these specific users i need from a... (6 Replies)
Discussion started by: James777
6 Replies

4. UNIX for Dummies Questions & Answers

User Access Rights

Hi Folks, My problem is an easy one for the experts here. All my applications run using a user id that creates files with only the following default rights: -rw-r----- I want to modify this user's account such that it creates files that assign read access to the everyone group by default:... (7 Replies)
Discussion started by: umairrahman
7 Replies

5. UNIX for Advanced & Expert Users

FTP and access rights

Hello all, I am currently writing an application that besides other thing ,ftps files from remote machines (running linux and solaris). My problem is this: i am connecting to remote machines as a user other than root and i have found that there is a possibility that i will encounter folders with... (3 Replies)
Discussion started by: noam128
3 Replies

6. UNIX for Dummies Questions & Answers

Access Rights

Hello Guru, I have very unique requirement , need some help. I have one folder created in one the server A. In this folder , the file getting uploaded from some java based page. then i am calling scp through key file, which works fine in another folder of server B. Currently , what i am... (2 Replies)
Discussion started by: u263066
2 Replies

7. UNIX for Dummies Questions & Answers

kernel giving access for multiple users to access files

hi all, i want to know y kernel is giving access for multiple users to access a file when one user may be the owner is executing that file. Because other user can manipulate that file when the other user is executing that file, it will give the unexpected result to owner . plz help me... (1 Reply)
Discussion started by: jimmyuk
1 Replies

8. Red Hat

Dansguardian Access rights

well hi to all The thing is I need to allow particular site to just one or 2 user not to everybody. Can anybody tell me how do i do it. If i put there ip in exception then whole Restriction would be bypassed which i dont want. Your Responses would be highly appreciated THANKS in ADVANCE (0 Replies)
Discussion started by: achtani_jeetu
0 Replies

9. Solaris

samba read write access to owner and no access to other users

Hi All, I want to configure samba share permission so that only directory creator/owner has a read and write permission and other users should not have any read/write access to that folder.Will that be possible and how can this be achieved within samba configuration. Regards, Sahil (1 Reply)
Discussion started by: sahil_shine
1 Replies

10. Red Hat

How to check local accounts have root and user access rights ?

Hi, I have three servers,For 3 servers how i can take output,all the local accounts and details of whether the access is Root or User access. cheers (1 Reply)
Discussion started by: ranjithm
1 Replies
nistest(1)							   User Commands							nistest(1)

NAME
nistest - return the state of the NIS+ namespace using a conditional expression SYNOPSIS
nistest [-ALMP] [-a rights | -t type] object nistest [-ALMP] [-a rights] indexedname nistest -c dir1 op dir2 DESCRIPTION
nistest provides a way for shell scripts and other programs to test for the existence, type, and access rights of objects and entries. Entries are named using indexed names. See nismatch(1). With the -c option, directory names can be compared to test where they lie in rela- tion to each other in the namespace. OPTIONS
The following options are supported: -a rights This option is used to verify that the current process has the desired or required access rights on the named object or entries. The access rights are specified in the same way as the nischmod(1) command. -A All data. This option specifies that the data within the table and all of the data in tables in the initial table's con- catenation path be returned. This option is only valid when using indexed names or following links. -L Follow links. If the object named by object or the tablename component of indexedname names a LINK type object, the link is followed when this switch is present. -M Master server only. This option specifies that the lookup should be sent to the master server of the named data. This guar- antees that the most up to date information is seen at the possible expense that the master server may be busy. -P Follow concatenation path. This option specifies that the lookup should follow the concatenation path of a table if the initial search is unsuccessful. This option is only valid when using indexed names or following links. -t type This option tests the type of object. The value of type can be one of the following: D Return true if the object is a directory object. G Return true if the object is a group object. L Return true if the object is a link object. P Return true if the object is a private object. T Return true if the object is a table object. -c Test whether or not two directory names have a certain relationship to each other, for example, higher than (ht) or lower than (lt). The complete list of values for op can be displayed by using the -c option with no arguments. EXAMPLES
Example 1: Using the nistest Command When testing for access rights, nistest returns success (0) if the specified rights are granted to the current user. Thus, testing for access rights: example% nistest -a w=mr skippy.domain Tests that all authenticated NIS+ clients have read and modify access to the object named skippy.domain. Testing for access on a particular entry in a table can be accomplished using the indexed name syntax. The following example tests to see if an entry in the password table can be modified: example% nistest -a o=m '[uid=99],passwd.org_dir' To test if a directory lies higher in the namespace than another directory, use the -c option with an op of ht (higher than) as in the fol- lowing example (which would return true): example% nistest -c dom.com. ht lower.dom.com. ENVIRONMENT VARIABLES
NIS_PATH If this variable is set, and the NIS+ name is not fully qualified, each directory specified will be searched until the object is found. See nisdefaults(1). EXIT STATUS
The following exit values are returned: 0 Successful operation. 1 Failure due to object not present, not of specified type, and/or no such access. 2 Failure due to illegal usage. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWnisu | +-----------------------------+-----------------------------+ SEE ALSO
nis+(1), nischmod(1), nisdefaults(1), nismatch(1), attributes(5) NOTES
NIS+ might not be supported in future releases of the SolarisTM Operating Environment. Tools to aid the migration from NIS+ to LDAP are available in the Solaris 9 operating environment. For more information, visit http://www.sun.com/directory/nisplus/transition.html. SunOS 5.10 10 Dec 2001 nistest(1)
All times are GMT -4. The time now is 05:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy