path: root/tests/bugs/rpc/bug-954057.t
diff options
authorSunil Kumar Acharya <>2019-11-14 09:24:26 +0530
committerSanju Rakonde <>2020-01-24 06:34:08 +0000
commit7cac693bba33cbba35a6d0bbe98d8ad5551d2134 (patch)
tree154d758a687fb8dbebd9dfd96b371b9d7b32565b /tests/bugs/rpc/bug-954057.t
parent7dc4122b84c93cfa6355002fa651a806706e4990 (diff)
tests: fix test failures for nfsnobody user and group
'nfsnobody' user and group is merged with 'nobody' user and group in RHEL8. Tests are modified to use appropriate user and group. BUG: 1756900 Change-Id: I59863da2262283b00b1cb417d3652ebe29a36407 Signed-off-by: Sunil Kumar Acharya <>
Diffstat (limited to 'tests/bugs/rpc/bug-954057.t')
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/bugs/rpc/bug-954057.t b/tests/bugs/rpc/bug-954057.t
index 65af274..40acdc2 100755
--- a/tests/bugs/rpc/bug-954057.t
+++ b/tests/bugs/rpc/bug-954057.t
@@ -25,7 +25,15 @@ TEST $GFS --volfile-id=/$V0 --volfile-server=$H0 $M0
TEST mkdir $M0/dir
TEST mkdir $M0/nobody
-TEST chown nfsnobody:nfsnobody $M0/nobody
+grep nfsnobody /etc/passwd > /dev/null
+if [ $? -eq 1 ]; then
+TEST chown $usr:$grp $M0/nobody
TEST `echo "file" >> $M0/file`
TEST cp $M0/file $M0/new
TEST chmod 700 $M0/new