issue with /etc/groups on unix server

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
leka.sm
Participant
Posts: 2
Joined: Wed Sep 24, 2008 4:07 am

issue with /etc/groups on unix server

Post by leka.sm »

hi,

I want to make an entry in /etc/groups on unix server. can anyone tell how to get he path where this folder resides..
And also, can anyone say the query used to add an entry (user) in this folder.

with thanks,
Leka.
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Welcome aboard.

/etc/groups is located at /etc/groups

The file called groups is in the directory whose pathname is /etc.

What are you trying to achieve by this? In most variants of UNIX you need to do more (and more securely) than add an entry to the groups file in order for the group to exist. For example your UNIX may have an add_group command, or it may use the smit command, and so on.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
leka.sm
Participant
Posts: 2
Joined: Wed Sep 24, 2008 4:07 am

Post by leka.sm »

hi ray,
i want to add a username to /etc/groups. can you please tell me the command used to do so?

with thanks,
Leka.
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

No, because I don't know what kind of UNIX you're on.

Ask your UNIX system administrator what the correct command is AND what special privileges/permissions might be required at your site to be able to use that command.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

leka.sm wrote:i want to add a username to /etc/groups.

Unless you are a SysAdmin for that server, you can't. Find out what the process is in your organization and put in a request for a new user.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply