Page Menu
Home
VyOS Platform
Search
Configure Global Search
Log In
Files
F118305263
show_current_user.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
289 B
Referenced Files
None
Subscribers
None
show_current_user.sh
View Options
#! /bin/bash
echo
-n
"login : "
;
who
-m
if
[
-n
"
$VYATTA_USER_LEVEL_DIR
"
]
then
echo
-n
"level : "
basename
$VYATTA_USER_LEVEL_DIR
fi
echo
-n
"user : "
;
id
-un
echo
-n
"groups : "
;
id
-Gn
if
id
-Z
>/dev/null
2
>
&
1
then
echo
-n
"context : "
id
-Z
fi
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Sat, Oct 17, 12:00 AM (8 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4352104
Default Alt Text
show_current_user.sh (289 B)
Attached To
Mode
rVYOSONEX vyos-1x
Attached
Detach File
Event Timeline
Log In to Comment