Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

how to set up newgrp on .profile

$
0
0
Hello all,

I am having an issue setting up an environment on .profile. I want to set up my .profile in that way that everytime I login to the host, it should automatically set up my group. I tried the folllowing but it doesn't work. It is on the solaris OS.

HOSTNAME=$(hostname)

if [[ "$HOSTNAME" = "tpat1a" ]] || [[ "$HOSTNAME" = "tpat2a" ]]
then
newgrp unixteam
umask 002
fi

Any help will be appreciated.

Thanks
PT

Viewing all articles
Browse latest Browse all 13329

Trending Articles