আমি সার্ভার হিসাবে ব্যবহৃত ম্যাক মিনিসের একটি দল পরিচালনা করার চেষ্টা করছি। আমার সম্প্রতি তাদের সমস্ত পাসওয়ার্ড পরিবর্তন করার দরকার ছিল, তাই আমি এই কমান্ডটি এসএসএড করে চালিত করেছিলাম, যা এই মেশিনগুলিতে নতুন ব্যবহারকারী অ্যাকাউন্ট তৈরি করার সময় আমি ব্যবহার করেছি:
sudo dscl . passwd /Users/administrator thePassword
দুর্ভাগ্যক্রমে, কোনও বিদ্যমান ব্যবহারকারীর ব্যবহার করার সময় আমি যা ভেবেছিলাম এটি তা করেন নি - নতুন পাসওয়ার্ডটি নয় thePassword
এবং তাই আমি এর অ্যাক্সেস হারিয়ে ফেলেছি sudo
। man dscl
এটা বলতে কি:
passwd কোন
Usage: passwd user_path [new_pasword | old_password new_pasword]
Changes a password for a user. The user must be specified by full path,
not just a username. If you are authenticated to the node (either by
specifying the -u and -P flags or by using the auth command when in
interactive node) then you can simply specify a new password. If you are
not authenticated then the user's old password must be specified. If
passwords are not specified while in interactive mode, you will be
prompted for them. Passing these passwords on the command line is inher-
ently insecure and can cause password exposure. For better security do
not provide the password as part of the command and you will be securely
prompted.
সুতরাং দেখে মনে হচ্ছে পূর্ববর্তী কমান্ডটি চালনার সময় আমার ব্যবহারকারীর পুরানো পাসওয়ার্ডটি দেওয়া উচিত ছিল, তবে আমি তা করি নি। আমি জানি যে আমি কী পাসওয়ার্ড প্রবেশ করিয়েছি এবং আমার কাছে এখনও মেশিনগুলিতে এসএসএইচ অ্যাক্সেস রয়েছে। কমান্ডটি কী করেছে তা যদি আমি বুঝতে পারি তবে আমি অ্যাকাউন্টগুলিতে কী পাসওয়ার্ড সেট করেছি তা বলতে সক্ষম হব।