Page 1 of 1

issue with /etc/groups on unix server

Posted: Wed Sep 24, 2008 4:36 am
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.

Posted: Wed Sep 24, 2008 4:45 am
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.

Posted: Wed Sep 24, 2008 4:50 am
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.

Posted: Wed Sep 24, 2008 4:52 am
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.

Posted: Wed Sep 24, 2008 7:16 am
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.