Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Ansible Connectivity on VIOS using service account created in vios/padmin mode #11

Open
riginibm opened this issue May 25, 2022 · 0 comments

Comments

@riginibm
Copy link

Issue with Ansible Connectivity on VIOS using service account created in vios/padmin mode

Even though, testV user account home directory and sub directory has sufficient privileges, we are receiving permission error

Note: One issue we can think of is "testV" user created in vios/padmin mode is unable to run python command, we also gave this user RBAC privileges

$ /opt/bin/python
rksh: /opt/bin/python: restricted

Permission Error in Ansible:
( umask 77 && mkdir -p "echo ~/.ansible/tmp"&& mkdir "echo ~/.ansible/tmp/ansible-tmp-1652973773.07-17-152803615776842" && echo ansible-tmp-1652973773.07-17-152803615776842="echo ~/.ansible/tmp/ansible-tmp-1652973773.07-17-152803615776842" )

Permissions
$ pwd
/home/testV
$ ls -ld /home/testV
drwxr-x--- 4 testV system 256 May 20 09:34 /home/testV
$ ls -al /home/testV
total 56
drwxr-x--- 4 testV system 256 May 20 09:34 .
drwxr-xr-x 29 bin bin 4096 May 18 15:25 ..
drwxrwxrwx 3 testV system 256 May 19 11:25 .ansible
lrwxrwxrwx 1 root system 21 May 18 15:31 .profile -> /usr/ios/cli/.profile
-rw------- 1 testV system 5614 May 25 16:23 .sh_history
drwxr-xr-x 2 testV system 256 May 18 15:25 .ssh
-rw------- 1 testV system 20 May 20 09:34 .vi_history
-rw------- 1 root system 46 May 23 11:35 ioscli.log
-rw------- 1 testV system 20 May 20 09:34 test.txt
-rw------- 1 testV system 23 May 20 09:34 testing.txt
$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant