ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm]  cifs
@ 2008-09-09  2:55 Occisor
  2008-09-09  4:13 ` Pavel Zilke
  0 siblings, 1 reply; 2+ messages in thread
From: Occisor @ 2008-09-09  2:55 UTC (permalink / raw)
  To: community

Монтирую ресурсы windows (пк подключен к сети с доменом w2k и входит в 
него) следующей командной:

mount -t cifs //[server]/[fold] /mnt/[fold] -o 
username=user,password=pass,iocharset=utf8

Монтируется все хорошо, но через определенное время, то ли при 
бездействии толи еще что (не смог определить зависимость) папка с 
примонтированным ресурсом становиться недоступна и при входе в нее от 
root она пуста. Приходиться отмонтировать ее и монтировать заново, как 
бы это пофиксить?
И еще вопрос, можно ли сделать так чтоб не указывать логин и пароль 
открыто в команде монтирования, а чтоб он брался из какого-нибудь файла.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Comm] cifs
  2008-09-09  2:55 [Comm] cifs Occisor
@ 2008-09-09  4:13 ` Pavel Zilke
  0 siblings, 0 replies; 2+ messages in thread
From: Pavel Zilke @ 2008-09-09  4:13 UTC (permalink / raw)
  To: ALT Linux Community general discussions

Occisor пишет:
> Монтирую ресурсы windows (пк подключен к сети с доменом w2k и входит в 
> него) следующей командной:
>
> mount -t cifs //[server]/[fold] /mnt/[fold] -o 
> username=user,password=pass,iocharset=utf8
>
> Монтируется все хорошо, но через определенное время, то ли при 
> бездействии толи еще что (не смог определить зависимость) папка с 
> примонтированным ресурсом становиться недоступна и при входе в нее от 
> root она пуста. Приходиться отмонтировать ее и монтировать заново, как 
> бы это пофиксить?
> И еще вопрос, можно ли сделать так чтоб не указывать логин и пароль 
> открыто в команде монтирования, а чтоб он брался из какого-нибудь файла.
> _______________________________________________
> community mailing list
> community@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/community
У себя не замечал, чтобы папка становилась недоступной.
По поводу логина и пароля. Выдежка из man mount.cifs:
OPTIONS

<skip>

credentials=filename
           specifies a file that contains a username and/or password. 
The format of the file is:

                         username=value
                         password=value

           This is preferred over having passwords in plaintext in a 
shared file, such as /etc/fstab. Be sure to protect any credentials file
           properly.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-09-09  4:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-09  2:55 [Comm] cifs Occisor
2008-09-09  4:13 ` Pavel Zilke

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git