/var/spool/mail/root: Permission denied

[root@kerry ~]# su kerry
[google@kerry root]$ mail
/var/spool/mail/root: Permission denied
[atyu@kerry root]$ exit
exit
[root@kerry ~]# su - kerry
[atyu@kerry ~]$ mail
Mail version 8.1 6/6/93.  Type ? for help.
"/var/spool/mail/google": 2 messages 2 new
>N  1 [email protected]  Mon Sep 10 13:38  80/2616  "Undelivered Mail Returned to Sender"
 N  2 [email protected]  Mon Sep 10 13:45  19/658   "IBM"
&
收到邮件了
#su - username 携带环境变量
#su username 只是切换用户,但是环境变量还是之前用户的

你可能感兴趣的:(Permission,职场,denied,休闲)