Renee and Anurag,
I found the issues in bits Mar 12, too. Please check the following
description.
Anurag S. Maskey wrote:
>
> I am not seeing this issue. I don't recall anything related being done
> on this since you sent this email.
>
> bash-3.2# su am223141
> bash: /root/.bashrc: Permission denied
>
> bash-3.2$ profiles
> Basic Solaris User
> All
>
> bash-3.2$ nwamcfg list
> List error: Insufficient privileges for action
> bash-3.2$ echo $?
> 1
>
The difference is that you are using the user with "defaultpriv=basic",
I'm trying the one with "auths=solaris.network.autoconf.read" or
"auths=solaris.network.autoconf.write"
"auths=solaris.network.autoconf.read,auths=solaris.network.autoconf.write"
* Here is the result for user with "auths=solaris.network.autoconf.read"
# firering:exp# su - nwamtest
Sun Microsystems Inc. SunOS 5.11 nwam1-build:2009-03-12 Mar. 12, 2009
SunOS Internal Development: am223141 2009-03-12 [nwam1-build]
bfu'ed from
/net/zhadum.east/export/ws/am223141/nwam1-build/archives/sparc/nightly.2009-03-12
on 2009-03-15
Sun Microsystems Inc. SunOS 5.11 snv_107 November 2008
bash-3.2$ /usr/sbin/nwamcfg list
NCPs:
User
Automatic
Locations:
myloc1
ENMs:
myenm1
myenm2
bash-3.2$ /usr/sbin/nwamcfg -f nwamcfg_destroy_a.s
Configuration read.
bash-3.2$ echo $?
0
This shouldn't be 0.
bash-3.2$ cat /etc/user_attr | grep nwamtest
nwamtest::::type=normal;auths=solaris.network.autoconf.read
bash-3.2$ /usr/sbin/nwamcfg list
NCPs:
User
Automatic
Locations:
myloc1
ENMs:
myenm1
myenm2
* Here is the result for user with "auths=solaris.network.autoconf.write"
bash-3.2$ cat /etc/user_attr | grep nwamtest
nwamtest::::type=normal;auths=solaris.network.autoconf.read,auths=solaris.network.autoconf.write
bash-3.2$ /usr/sbin/nwamcfg list
NCPs:
User
Automatic
Locations:
myloc1
ENMs:
myenm1
myenm2
bash-3.2$ /usr/sbin/nwamcfg -f nwamcfg_destroy_a.s
Configuration read.
bash-3.2$ echo $?
0
bash-3.2$ /usr/sbin/nwamcfg list
NCPs:
User
Automatic
Locations:
myloc1
ENMs:
myenm1
myenm2
The configuration is not destroyed, I think this is an issue.
> bash-3.2$ nwamcfg -f /var/tmp/myenm.nwamcfg.script
> On line 5 of /var/tmp/myenm.nwamcfg.script:
> Commit error: Insufficient privileges for action
> bash-3.2$ echo $?
> 1
>
> bash-3.2$ nwamcfg
> nwamcfg> create loc test-loc
> Created loc 'test-loc'. Walking properties ...
> activation-mode (manual) [manual|conditional-any|conditional-all]>
> nameservices (dns) [dns|files|nis|ldap]>
> nameservices-config-file ("/etc/nsswitch.dns")>
> dns-nameservice-configsrc (dhcp) [manual|dhcp]>
> hosts-file>
> nfsv4-domain>
> ipfilter-config-file>
> ipfilter-v6-config-file>
> ipnat-config-file>
> ippool-config-file>
> ike-config-file>
> ipsecpolicy-config-file>
> svcs-enable>
> svcs-disable>
> nwamcfg:loc:test-loc> verify
> All properties verified
> nwamcfg:loc:test-loc> commit
> Commit error: Insufficient privileges for action
> nwamcfg:loc:test-loc> exit
> Commit error: Insufficient privileges for action
> Configuration not saved; really quit (y/[n])? y
> bash-3.2$
>
> do you still get this problem? can you provide details/steps you took to
> get this including aths and profiles the user.
>
> Thanks,
> Anurag
>
>
--
Thanks,
Lizhong