![]() The sudo program is a handy tool that allows me as a sysadmin with root access to delegate responsibility for all or a few administrative tasks to other users of the computer. This protects the system against accidental damage, such as that caused by my own stupidity, and intentional damage by a user with malicious intent. Many Linux commands require the user to be root in order to run. So, I write scripts to automate those tasks and use sudo to anoint a couple of users to run the scripts. Even when I am present, as the "lazy sysadmin," I like to have others do my work for me. It is not that I cannot run the program myself, but for various reasons, including travel and illness, I am not always there. Free online course: RHEL Technical Overview. ![]() Unfortunately, this organization has only a few people who have any interest in administering our audio and computer systems, which puts me in the position of finding semi-technical people and training them to log into the computer used to perform the transfer and run this little program. My program, as wonderful as it is, must run as root to perform its primary functions. This nice little program has a few options, such as -h to display help, -t for test mode, and a couple of others. It also deletes all the files on the USB drive after verifying that the transfer completed correctly. My program does a few other things, such as changing the name of the files before they are copied so they are automatically sorted by date on the webpage. The files are copied to a specific directory on the server that I run for a volunteer organization, from where the files can be downloaded and played. I recently wrote a short Bash program to copy MP3 files from a USB thumb drive on one network host to another network host.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |