7.1 System Administration jobs

System Administrator (सिस्टम प्रबंधक)

• इसे superuser अथवा root user  भी कहा जाता है |

• Administrator एक system user है जिसके पास कई powers (विशेष-अधिकार) होते है | उसके पास सम्पूर्ण system का access होता है |

• उसके पास system या application installation तथा maintenance, user account management, security, disk space management, backup आदि कार्यों की जिम्मेदारी होती है |

• root - UNIX में system administrator के लिए अलग से user होता है जिसे root कहा जाता है |

• root- user account को अलग से create नहीं करना पड़ता है यह प्रत्येक system में होता ही है | इसका password installation के समय तय किया जाता है |

• root-user prompt के रूप में # का तथा सामान्य user prompt के रूप में $ अथवा % का प्रयोग किया जाता है |

• root-user की home directory / अथवा /root होती है | यह system पर निर्भर करता है | 

• Administrative commands को /sbin तथा /usr/sbin directory में रखा जाता है |

 su command द्वारा कोई भी सामान्य user super-user का status प्राप्त कर सकता है –

e.g.  

$ su

Password: ******

#  

su command के successful execution पर prompt $ से बदलकर # हो जायेगा |

$ su – henry

इस command द्वारा administrator बिना password के दुसरे user-account से login कर सकता है |


Administrator’s Privileges (विशेष अधिकार)


  1. किसी फाइल के content तथा attributes को change करना | वह किसी file की permissions तथा ownership को बदल सकता है | वह किसी भी फाइल को delete कर सकता है |
  2. वह किसी process को initiate (प्रारंभ) या kill (अंत) कर सकता है | वह सभी processes को एक साथ kill कर सकता है केवल उन processes को छोड़कर जो system को run करने के लिए आवश्यक है |
  3. किसी भी user के password को बदल सकता है बिना पूर्व password को दर्ज किये
  4. System clock (date तथा time) को date command द्वारा set करना |
  5. wall command की सहायता से समस्त users को notifications भेजना |
  6. ulimit command की सहायता से file की अधिकतम size को नियंत्रित करना | 
  7. at तथा cron आदि scheduling services पर विभिन्न users के access को control करना |
  8. विभिन्न networking services (FTP, SSH etc.) पर users के access को control करना |


date command

date command द्वारा normal user वर्तमान date तथा time देख सकता है | जबकि इसी command द्वारा administrator date तथा time set कर सकता है | 

 e.g.

# date 01092124

Thu Jan 9 21:24:00 IST 2003

यहाँ date command है तथा 01092124 command argument है | जो कि MMDDhhmm format में eight-character string है | इसके पश्चात् two या four character year (YY या yyyy) प्रयुक्त होता है जो की optional (वैकल्पिक) है |

Note – किसी भी UNIX system के सही क्रियान्वयन के लिए date तथा time का सही होना बहुत ही आवश्यक है |


wall command

 wall command एक साथ सभी users को address (सूचित) करता है, अर्थात notification (सूचना) भेजता है | अधिकतर UNIX systems में इसका प्रयोग केवल administrator (root user) द्वारा ही किया जा सकता है |

# wall

The machine will be shut down today

at 15:30 hrs. The backup will be at 13:30 hrs.

[Ctrl – d]


वे सभी users जो login किये हुए है इस message को प्राप्त करेंगे



ulimit command

ulimit command से किसी user द्वारा बनायी जाने वाली file की अधिकतम size को सीमित किया जा सकता है | सामान्य user इस size को इस command द्वारा केवल कम (reduce) कर सकता है जबकि root user इस size को बढा (increase) भी कर सकता है |

e.g. 

# ulimit  20971510

यहाँ संख्या 20971510 द्वारा फाइल की size को व्यक्त किया गया है | यह 512 Bytes के Blocks की संख्या है | अतः Max. file size = 20971510 x 512 Bytes


# ulimit 

सिर्फ ulimit command प्रयोग करने पर यह वर्तमान max. file size को show करता है |


Controlling use of at, batch commands

at तथा batch command के access को दो files at.allow तथा at.deny द्वारा सीमित और नियंत्रित किया जाता है | ये दोनों files /etc/cron.d नाम की directory में स्थित होती है |

यदि at.allow file विद्यमान है तो जिन users का नाम at.allow file में होता है केवल वे ही at तथा batch commands को access कर सकते है | अन्यथा system at.deny file को check करता है इसमें मौजूद users को access नहीं दिया जाता है |

यदि दोनों ही files विद्यमान नहीं है तो केवल root user ही इन commands को access कर सकता है | 


Controlling use of cron command


cron एक scheduler प्रोग्राम है | इसके द्वारा हम किसी प्रोग्राम को कब run करना है यह तय कर सकते है | इसके द्वारा कई task को हम automate कर सकते है |

इस command के access को दो files cron.allow तथा cron.deny द्वारा नियंत्रित किया जाता है |

ये दोनों files /etc/cron.d या /etc नाम की directory में रहती है |


passwd command

passwd command द्वारा किसी user के login password को change किया जा सकता है |

जब सामान्य user द्वारा इस command का प्रयोग किया जाता है तो password बदलने के लिए उसे current password enter करना अनिवार्य होता है जबकि super-user किसी भी user का password बिना old password के बदल सकता है | नया password दो बार enter करना होता है |

$ passwd

Enter Old Password : 

Enter New Password : 

Enter New Password Again : 


यह command current user के पासवर्ड को change करेगा |


# passwd henry 

Enter New Password : 

Enter New Password Again : 

यहाँ henry command argument है तथा यह command henry नाम के user का Password बदलने के लिए है | 


Note – super-user किसी भी user का password बदल सकता है बिना old password  को enter किये | 





Last modified: Monday, 30 March 2020, 7:01 PM