10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi all,
I am running CentOS6.3 and NFS is giving me a real hard time here:
on my server a folder called /networkh has created with 777 permissions. I have setup NFS server on this server and it is supposed to serve a network.
On my client machine I configed my auto.master:
/nethome... (1 Reply)
Discussion started by: bashily
1 Replies
2. AIX
Hi Team,
I am using AIX 6.1 version. I have two log id IDs say (user1 and user2)
Both users primary group is same. ex (group1)
I have created directory called /logs/app using user1 and permissions are like below
/logs ------ drwxrwxr-x
/logs/app ----- drwxrwxrwx
But all the process... (3 Replies)
Discussion started by: balasubramani04
3 Replies
3. UNIX for Dummies Questions & Answers
I have a file, the long listing output by 'ls -l' is
-rw-r--r-- 1 usera agroup 1246 Jul 7 14:44 temp.R
The file is under a Solaris ZFS file system. As a different user (userb), I did
cp temp.R /tmp
ls -l /tmp/temp.R
-rw-r--r-- 1 userb agroup 1246 Nov 16 14:45 /tmp/temp.R
... (14 Replies)
Discussion started by: nugulus
14 Replies
4. HP-UX
Good day guys,
I am very new in UNIX and am trying to install an application which uses an application ID that requires administrative privileges (Full control). In most cases, we use SUDO to grant access to this ID however the customer insisted NOT to use SUDO and Root ID is not to be used to... (1 Reply)
Discussion started by: mcdsweet98
1 Replies
5. Shell Programming and Scripting
hello
I m trying to enter in a folder through my script but getting permission denied error ..
Is there any command or somthing else so that i can access these folder through my script. (3 Replies)
Discussion started by: urfrnddpk
3 Replies
6. Shell Programming and Scripting
I am using tcsh
what could possibly be a problem, when using crontab to invoke a shell script. ?
The script has the read, write and execute permission to all users. And the script works as expected while executing it in stand-alone mode.
Is there a way to trace (like log) what error... (9 Replies)
Discussion started by: vikram3.r
9 Replies
7. Shell Programming and Scripting
We have a script which will move the files from the each user home directory to other location to process the file in the server.
The users put files in their home directory using FTP and the user home dir have 775 permission so the the application user can move the files from the home path to... (11 Replies)
Discussion started by: GIC1986
11 Replies
8. UNIX for Dummies Questions & Answers
Hello All,
I receive a file from another server with file permission rw-r--r-- and owner of the file is the sFTP login id and group is also different from my login id.
Due to this I cannot move the file from and also cannot do anything on it.
Can anyone help on how to change the file... (2 Replies)
Discussion started by: maddy911
2 Replies
9. UNIX for Dummies Questions & Answers
folks;
How can i give a group a sudo permission to execute only some command "like start/stop Apache", so every user in that group can sudo to use this as himself, i mean when he tries to sudo, he will be asked for a password (and make it so he must use his own NT password not a generic one) then... (6 Replies)
Discussion started by: Katkota
6 Replies
10. Shell Programming and Scripting
My Admin has written a shell script (Filepermission.ksh) with the following commands and provided me 'exeutive' privileges. However, when I try to run the script, I am getting the following error message. Can some one tell me what could be missing? Thank you for your continued support.
Script:
... (0 Replies)
Discussion started by: MeganP
0 Replies
User::grent(3pm) Perl Programmers Reference Guide User::grent(3pm)
NAME
User::grent - by-name interface to Perl's built-in getgr*() functions
SYNOPSIS
use User::grent;
$gr = getgrgid(0) or die "No group zero";
if ( $gr->name eq 'wheel' && @{$gr->members} > 1 ) {
print "gid zero name wheel, with other members";
}
use User::grent qw(:FIELDS;
getgrgid(0) or die "No group zero";
if ( $gr_name eq 'wheel' && @gr_members > 1 ) {
print "gid zero name wheel, with other members";
}
$gr = getgr($whoever);
DESCRIPTION
This module's default exports override the core getgrent(), getgruid(), and getgrnam() functions, replacing them with versions that return
"User::grent" objects. This object has methods that return the similarly named structure field name from the C's passwd structure from
grp.h; namely name, passwd, gid, and members (not mem). The first three return scalars, the last an array reference.
You may also import all the structure fields directly into your namespace as regular variables using the :FIELDS import tag. (Note that
this still overrides your core functions.) Access these fields as variables named with a preceding "gr_". Thus, "$group_obj->gid()" cor-
responds to $gr_gid if you import the fields. Array references are available as regular array variables, so "@{ $group_obj->members() }"
would be simply @gr_members.
The getpw() function is a simple front-end that forwards a numeric argument to getpwuid() and the rest to getpwnam().
To access this functionality without the core overrides, pass the "use" an empty import list, and then access function functions with their
full qualified names. On the other hand, the built-ins are still available via the "CORE::" pseudo-package.
NOTE
While this class is currently implemented using the Class::Struct module to build a struct-like class, you shouldn't rely upon this.
AUTHOR
Tom Christiansen
perl v5.8.0 2002-06-01 User::grent(3pm)