Как поменять пароль ftp юзеров по SSH

12
S
На сайте с 23.08.2012
Offline
61
11899

Как поменять пароль ftp юзеров сервера по SSH, подскажите, пожалуйста. Рута в том числе

DV
На сайте с 01.05.2010
Offline
644
#1

Чито????

man passwd

VDS хостинг ( http://clck.ru/0u97l ) Нет нерешаемых задач ( https://searchengines.guru/ru/forum/806725 ) | Перенос сайтов на Drupal 7 с любых CMS. ( https://searchengines.guru/ru/forum/531842/page6#comment_10504844 )
S
На сайте с 23.08.2012
Offline
61
#2
DenisVS:
Чито????
man passwd

очень содержательно и понятно

DV
На сайте с 01.05.2010
Offline
644
#3

Какое конкретное слово вызывает затруднение?

Вот сейчас, аж 2 окна открыто.

Debian:

PASSWD(1)                        User Commands                       PASSWD(1)


NAME
passwd - change user password

SYNOPSIS
passwd [options] [LOGIN]

DESCRIPTION
The passwd command changes passwords for user accounts. A normal user
may only change the password for his/her own account, while the
superuser may change the password for any account. passwd also changes
the account or associated password validity period.

FreeBSD:
PASSWD(1)               FreeBSD General Commands Manual              PASSWD(1)


NAME
passwd, yppasswd — modify a user's password

SYNOPSIS
passwd [-l] [user]
yppasswd [-l] [-y] [-d domain] [-h host] [-o]

DESCRIPTION
The passwd utility changes the user's local, Kerberos, or NIS password.
If the user is not the super-user, passwd first prompts for the current
password and will not continue unless the correct password is entered.

When entering the new password, the characters entered do not echo, in
order to avoid the password being seen by a passer-by. The passwd util‐
ity prompts for the new password twice in order to detect typing errors.

The new password should be at least six characters long (which may be
overridden using the login.conf(5) “minpasswordlen” setting for a user's
login class) and not purely alphabetic. Its total length must be less
than _PASSWORD_LEN (currently 128 characters).

The new password should contain a mixture of upper and lower case charac‐
ters (which may be overridden using the login.conf(5) “mixpasswordcase”
setting for a user's login class). Allowing lower case passwords may be
useful where the password file will be used in situations where only
lower case passwords are permissible, such as when using Samba to authen‐
ticate Windows clients. In all other situations, numbers, upper case
letters and meta characters are encouraged.

Once the password has been verified, passwd communicates the new password
information to the Kerberos authenticating host.

The following option is available:

-l Cause the password to be updated only in the local password file,
and not with the Kerberos database. When changing only the local
password, pwd_mkdb(8) is used to update the password databases.

When changing local or NIS password, the next password change date is set
according to “passwordtime” capability in the user's login class.

To change another user's Kerberos password, one must first run kinit(1)
followed by passwd. The super-user is not required to provide a user's
current password if only the local password is modified.

S
На сайте с 23.08.2012
Offline
61
#4
DenisVS:
Какое конкретное слово вызывает затруднение?

ну просто вообще непонятно, исходя из вопроса и последовавшего ответа, после введения волшебных 2 слов, получается, что все пароли поменяются... напишите, пожалуйста, как поменять пароль для пользователя root с указанием нового пароля rrr .... и также можно поменять пароль и для других юзеров как и для рута?

DV
На сайте с 01.05.2010
Offline
644
#5

Проапдейтил. Почитайте инструкцию, она доступна как раз по man passwd.

S
На сайте с 23.08.2012
Offline
61
#6

У меня похоже какае то защита стоит, после команды passwd появляется строчка: Введите новый пароль UNIX но туда ничего не пишется

DV
На сайте с 01.05.2010
Offline
644
#7

И не будет писаться, это такое поветрие в UNIX.

S
На сайте с 23.08.2012
Offline
61
#8

и в Bitvise tunnelier есть кнопка смены пароля, если туда вводишь новый пароль, то он выдаёт ошибку

---------- Добавлено 01.12.2012 в 02:05 ----------

Денис, Вы могли бы мне просто написать как его поменять и для рута и для какого нибудь юзера под рутом?

DV
На сайте с 01.05.2010
Offline
644
#9

Scrudje, нет, я могу это сделать для конкретной системы, с которой работаю (FreeBSD 8-9). Для вашего случая, лучше почитать man passwd. Тупое копирование команд может погубить ваш сервер.

S
На сайте с 23.08.2012
Offline
61
#10

passwd [новый пароль] [user] так поменяется верно?

---------- Добавлено 01.12.2012 в 02:10 ----------

ок, понял, Спасибо!

---------- Добавлено 01.12.2012 в 02:18 ----------

по команде man passwd выдало

"Название

passwd - изменяет пароль пользователя

СИНТАКСИС

passwd [параметры] [LOGIN]

Описание и тд...

это что то проясняет или нет?

---------- Добавлено 01.12.2012 в 02:37 ----------

прочитал инструкцию... по не понимаю как поменять пароль...

те сначала нужно сделать пароль устаревшим командой passwd -e и так зайти под каждыйм юзером, тем самым пароль каждого из юзеров устареет и оно попросит ввести новый пароль, но можно ли будет его ввести в окно, не будет ли фичи, что в окно ничего не вводиться

12

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий