I need a Linux script that will move files named *.service from the user home directory and into /etc/systemd/system, set the correct permissions, enable them (there may be multiple .service files) and echo start/stop permissions into /etc/sudoers.d/DEV.
One problem is [login to view URL] will be executed in this fashion:
$sudo /bin/[login to view URL]
Because of this, it cannot use $HOME because elevating the script will change home to the root $HOME.
Maybe passing a user parameter is a solution? $sudo /bin/[login to view URL] bob (ex. /home/bob/)
Prototype:
chown root:root $HOME/*.service
chmod 755 $HOME/*.service
mv $HOME/*.service /etc/systemd/system
systemctl enable $[login to view URL]
echo "group ALL=PASSWD: /bin/systemctl start serviceName" >> /etc/sudoers.d/DEV
echo "group ALL=PASSWD: /bin/systemctl stop seviceName" >> /etc/sudoers.d/DEV
hello
I am an experienced system administrator and i can do this. However, you already have given the steps of the shell script in your prototype. What else is required? Please let me know.
Hello
Greetings,
As i read your job description , i understood that you want to be expert for your job and i am presenting myself the best for you please contact me asap so that i can provide you best service.
Please ping me i need to ask few things.
Thanks
Nirmal
Dear Sir, I have gone through project description and interested taking it up. Posted bid amount is indicative and a more accurate I can give once more details are shared. Looking forward to hear from you.
Thanks
Hello. Lots of sysadmin experience here. I would be happy to code this for you. Let's discuss the details in the chat. Just let me know when you need me. Thank you.
Hey there,
I can do this for you. I have over 10 years of system administration experience and this is a walk in the park.
Feel free to message me here on Freelancer.
Hi
I am an devops engineer experienced in linux systems for more than 4 years. I am well experienced in shell script to copy files, change permission and processing. I can do this for you. Please message to discuss further on this
Thanks
Note-please check my profile for past projects and reviews.
Hi
Hope you are doing well. I have 7 yrs of experience on website developement and linux shell scripting and written lots of scripts like that.I can finish this job.
Hello there
I can help you with that. You just need to contact us.
I wish you had a good day.
Hello there
I can help you with that. You just need to contact us.
I wish you had a good day.
This is Mansoor from MultiSequence, its seems most of the requested work is already mentioned in the description, would like to discuss details in case am missing something. Thanks.
I have been doing shell scripting for the past 7 years. I have done something similar in the past and I am confident that I will be able to achieve this pretty easily.