avatar
The sender info of mail command# Unix - 噫吁兮,危乎高哉
h*s
1
Hi there,
Our machine is running Solaris 9 and using NIS. I sshed in as a regular user A
and "su -" to root user. I typed following command as root user "mail A test
ctrl^d". I switched back to regular user A and checked the email of A. I found
the email with the content "test" as expected but I found the sender of the
email is A NOT the root. I am wondering why I issued the mail command as root
but the sender is not root but user A?
Thanks in advance!
avatar
w*n
2
Is the /var/spool/mail or /var/mail NFS mounted?

【在 h*********s 的大作中提到】
: Hi there,
: Our machine is running Solaris 9 and using NIS. I sshed in as a regular user A
: and "su -" to root user. I typed following command as root user "mail A test
: ctrl^d". I switched back to regular user A and checked the email of A. I found
: the email with the content "test" as expected but I found the sender of the
: email is A NOT the root. I am wondering why I issued the mail command as root
: but the sender is not root but user A?
: Thanks in advance!

avatar
h*s
3

Yes. /var/mail is NFS mounted.
cat /etc/mnttab|grep var
auto_direct /var/mail autofs direct,ro,nosuid,ignore,dev=3dc0001
1080130613
/export/mail /var/mail lofs rw,suid,dev=800080 1083962476
Could you tell me why it matters since /var/mail is NFS mounted?
Also, I have two more questions:
1. What is /export/mail. is this a local partition?
2. I am not sure the meaning of lofs. Does it mean a file system on local
disk,
if so, why didn't use /dev/dsk/... We only use NF

【在 w**n 的大作中提到】
: Is the /var/spool/mail or /var/mail NFS mounted?
avatar
w*n
4
NFS's client root has no write permission on mounted partition by default.
lofs is loopback virtual file system , you could man lofs get more info.

【在 h*********s 的大作中提到】
:
: Yes. /var/mail is NFS mounted.
: cat /etc/mnttab|grep var
: auto_direct /var/mail autofs direct,ro,nosuid,ignore,dev=3dc0001
: 1080130613
: /export/mail /var/mail lofs rw,suid,dev=800080 1083962476
: Could you tell me why it matters since /var/mail is NFS mounted?
: Also, I have two more questions:
: 1. What is /export/mail. is this a local partition?
: 2. I am not sure the meaning of lofs. Does it mean a file system on local

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。