02-17-2005
I believe directory permissions were not the problem as I could set 777 on the file and the user could run it.
I believe that even though I added the user to the proper group in /etc/group that since the file had not been re-read that the change hadnt effectively been made. bhargav gave me the hint about what group the shell belonged to so I tried starting a new shell as the user and the file ran.
I am guessing here but since the file ran under a new shell that indictes that the group file is read each time a new shell is created and so under the new shell the user was in the correct group ... is that correct?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
While logged on as root, I created a user 'usera'
I also created a group called 'groupa'
I need to modify the permission of the user i created to not have root privileges.
I also need to change groupa to be in 'others'
please help!
thanks,
nieves (3 Replies)
Discussion started by: mncapara
3 Replies
2. AIX
Please forgive me, but I am not a Unix expert. I'm supporting SAP r/3 and we are trying to run an external command from SAP to read a file at the unix level. When we perform the more command on the following two files, we are succesful in reading the bws file, but unsucessful in reading the bws1... (13 Replies)
Discussion started by: bbauerle
13 Replies
3. Shell Programming and Scripting
hello
I search a script (ksh for Aix 5.3) to save all permissions, groups and owner for all files. Because we work much to change it, and a mystake ......!
So i want execute this script to save/ execute permissions for all files.
If you have this script, thank you for your help ;)
best... (2 Replies)
Discussion started by: pascalbout
2 Replies
4. UNIX for Dummies Questions & Answers
Hi,
A simple and silly question on Unix.
I have a directory named "a" and I would like to grant permission to group name "text" to access, read and execute my directory.
Could anyone help me?
Thanks. (2 Replies)
Discussion started by: ahjiefreak
2 Replies
5. UNIX for Dummies Questions & Answers
In our file system, the SGID for a directory is set right now. Any new files created in this directory will automatically be assigned the same group from the parent directory.
Is there a way to inherit the file permission from the parent directory as well? The OS is Solaris 2.8.
Example:... (1 Reply)
Discussion started by: april
1 Replies
6. Shell Programming and Scripting
I need to find all the files that have group Read or Write permission or files that have user write permission.
This is what I have so far:
find . -exec ls -l {} \; | awk '/-...rw..w./ {print $1 " " $3 " " $4 " " $9}'
It shows me all files where group read = true, group write = true... (5 Replies)
Discussion started by: shunter63
5 Replies
7. UNIX for Dummies Questions & Answers
How would i write a command that can find all the objects under the etc directory that have group write permission enabled and have not been accessed in the last X days.
This is what i got from internet souce but i m not able to modify it according to my distribution.
find /etc -perm... (1 Reply)
Discussion started by: pinga123
1 Replies
8. Solaris
All:
I'm having a problem with sudo on Solaris 5.10 that is giving me fits (and BTW, I'm a Linux admin by trade...).
The issue is that I have a number of users (myself included) that cannot sudo to root to complete user admin tasks. Assuming the user is jdoe, and the group with the elevated... (3 Replies)
Discussion started by: rjlohman
3 Replies
9. Solaris
why is the group id in capital S and not lowercase s ?
I have a directory with the following permissions:
drwxrws--x
when I remove the group id and add it again with g+s or chmod 2765 , it
displays the group ID in capital "S" instead of lowercase "s"
tried to find this out on Google, but... (2 Replies)
Discussion started by: misterx12345
2 Replies
10. UNIX for Dummies Questions & Answers
I want to create a GROUP with rwx permission. Also, I want to create a GROUP with root privileges, so that next time i create a user, I just need to add it to any of the groups and privileges automatically applied.
please help.
Thanks,
Shouvanik (4 Replies)
Discussion started by: shouvanik
4 Replies
LEARN ABOUT FREEBSD
newgrp
NEWGRP(1) BSD General Commands Manual NEWGRP(1)
NAME
newgrp -- change to a new group
SYNOPSIS
newgrp [-l] [group]
DESCRIPTION
The newgrp utility creates a new shell execution environment with modified real and effective group IDs.
The options are as follows:
-l Simulate a full login. The environment and umask are set to what would be expected if the user actually logged in again.
If the group operand is present, a new shell is started with the specified effective and real group IDs. The user will be prompted for a
password if they are not a member of the specified group.
Otherwise, the real, effective and supplementary group IDs are restored to those from the current user's password database entry.
EXIT STATUS
The newgrp utility attempts to start the shell regardless of whether group IDs were successfully changed.
If an error occurs and the shell cannot be started, newgrp exits >0. Otherwise, the exit status of newgrp is the exit status of the shell.
SEE ALSO
csh(1), groups(1), login(1), sh(1), su(1), umask(1), group(5), passwd(5), environ(7)
STANDARDS
The newgrp utility conforms to IEEE Std 1003.1-2001 (``POSIX.1'').
HISTORY
A newgrp utility appeared in Version 6 AT&T UNIX.
BUGS
For security reasons, the newgrp utility is normally installed without the setuid bit. To enable it, run the following command:
chmod u+s /usr/bin/newgrp
Group passwords are inherently insecure as there is no way to stop users obtaining the password hash from the group database. Their use is
discouraged. Instead, users should simply be added to the necessary groups.
BSD
February 8, 2013 BSD