OK, find the culprit. I already have a tmux session, before adding the user to the adm group, and haven't close that session. After I closed all tmux sessions, the new tmux session will give the user proper permission to the log directory
Thanks for the help On Sat, Jan 19, 2019 at 1:05 AM Nicholas Marriott < [email protected]> wrote: > Are you sure you restarted it entirely? Does the output of "id" match > inside and outside? > > On Fri, 18 Jan 2019, 17:59 [email protected] <[email protected] wrote: > >> >> >> yes... after relogin, restart the tmux again (not reattach) >> >> -------- Original Message -------- >> From:Nicholas Marriott >> Sent:Sat, 19 Jan 2019 00:01:27 +0700 >> To:G Wijaya >> Cc:tmux-users >> Subject:Re: in tmux, access permission become denied >> >> Did you restart tmux after adding the user to the group? >> >> On Fri, 18 Jan 2019, 16:54 G Wijaya <[email protected] wrote: >> >>> >>> Hello >>> >>> - OS: Ubuntu 16.04.4 >>> - tmux version 2.8 >>> >>> On Ubuntu, user within member "adm" group, can view the log files[1]. >>> The first user on this system (e.g jaya), automatically belong to adm >>> group. 'jaya' can see /var/log/syslog, in tmux. >>> >>> If I add second user to adm group (e.g jaya2), jaya2 can see >>> var/log/syslog too in console. But, when jaya2 using tmux, jaya2 can't see >>> /var/log/syslog with error message: tail: cannot open '/var/log/syslog' for >>> reading: Permission denied >>> >>> I use putty to connect the system, and I have relog the user (jaya2) >>> >>> - [1] https://wiki.ubuntu.com/Security/Privileges#Monitor_system_logs >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "tmux-users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- "Get your facts first, then you can distort them as you please." - Mark Twain http://jaya.duniasemu.org -- You received this message because you are subscribed to the Google Groups "tmux-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
