6 More Discussions You Might Find Interesting
1. Homework & Coursework Questions
I am a Student in college struggling with Linux homework
This home work was created by my professor not out of the class text book and is frustrating me and the text book is a little frustrating as well
need help with 2 5 6
stuck on 2 currently so I know 5 and 6 will be even more... (9 Replies)
Discussion started by: jetoutant
9 Replies
2. UNIX for Dummies Questions & Answers
Hi everyone.
Let me just start off by saying I'm a college student and I love playing around with UNIX.
I registered here because I have a UNIX shell scripting class and I am having some issues with my homework. I'm not looking for answers to the problems, just some help to get me on my way.... (1 Reply)
Discussion started by: Hexum311
1 Replies
3. UNIX for Dummies Questions & Answers
yes im a student at Sandersville Technical College in Sandersville, Georgia.
Im doing a presentation on UNIX can someone help me discribe what UNIX is and how to use it and the different features it has? (6 Replies)
Discussion started by: willnadaze
6 Replies
4. Shell Programming and Scripting
Is there anyone here that can help me with my unix assignment? I've been working on it for 3 days now. It is regarding writing a script. I've got a few questions that I need some answers. Please someone who are willing to help add me to their msn messenger: ****************
In one part of... (0 Replies)
Discussion started by: DaSFLiP
0 Replies
5. Linux
I know taking the easy way out isn't going to help me learn anything, but hopefully it will at least give me some guidence...
I have a project and here's what I have to do... A company is currently running a Digital VAX and I have to replace it with a Linux server. There are 19 terminals... (4 Replies)
Discussion started by: MGold4357
4 Replies
6. Programming
Help! I am very stuck!!!
I have to produce a practical implementation of ONC RPC for an assignment and I do not know where to start. I hve done much searching on sun's site but everything is too complicated for someone with my limited knowledge. I only know the very basic unix commands and have... (1 Reply)
Discussion started by: karen79
1 Replies
LEARN ABOUT NETBSD
newgrp
NEWGRP(1) BSD General Commands Manual NEWGRP(1)
NAME
newgrp -- change to a new primary group
SYNOPSIS
newgrp [-l] [group]
DESCRIPTION
The newgrp command changes a user to a new primary group (real and effective group ID) by starting a new shell. The user remains logged in
and the current directory and file creation mask remain unchanged. The user is always given a new shell even if the primary group change
fails.
The newgrp command accepts the following options:
-l The environment is changed to what would be expected if the user actually logged in again. This simulates a full login.
The group is a group name or non-negative numeric group ID from the group database. The real and effective group IDs are set to group or the
group ID associated with the group name.
If group is not specified, newgrp restores the user's real and effective group IDs to the user's primary group specified in the password
database. The user's supplementary group IDs are restored to the set specified for the user in the group database.
If the user is not a member of the specified group, and the group requires a password, the user will be prompted for the group password.
FILES
/etc/group The group database
/etc/master.passwd The user database
/etc/passwd A Version 7 format password file
EXIT STATUS
If a new shell is started the exit status is the exit status of the shell. Otherwise the exit status will be >0.
SEE ALSO
csh(1), groups(1), login(1), sh(1), su(1), umask(2), group(5), passwd(5), environ(7)
STANDARDS
The newgrp command conforms to IEEE Std 1003.1-2001 (``POSIX.1'').
HISTORY
A newgrp command appeared in Version 6 AT&T UNIX. A newgrp command appeared in NetBSD 5.0.
BUGS
There is no convenient way to enter a password into /etc/group. The use of group passwords is strongly discouraged since they are inherently
insecure. It is not possible to stop users from obtaining the encrypted password from the group database.
BSD
June 6, 2007 BSD