1 |
Changing the perms on /dev/ttyS0 manually will not persist between reboots. |
2 |
You should change the udev rules in /etc/udev/rules.d/ or add "nut" to the |
3 |
uucp group in /etc/group. |
4 |
|
5 |
As for why your su doesn't work, I am not sure. Works for me, my root user is |
6 |
in the wheel group and the user I su to exists. |
7 |
|
8 |
On Tuesday, May 8, 2007 07:55, Vieri wrote: |
9 |
> --- Vieri <rentorbuy@×××××.com> wrote: |
10 |
> > Hi, |
11 |
> > |
12 |
> > I've recently installed a gentoo box with the |
13 |
> > hardend |
14 |
> > profile + hardened-sources so I'm new to all this. |
15 |
> > |
16 |
> > I have two basic questions that I can't seem to |
17 |
> > answer. |
18 |
> > |
19 |
> > 1) SU: |
20 |
> > on the non-hardened gentoo box I'm used to, I can |
21 |
> > enter as root and then do a "su username" and a |
22 |
> > whoami |
23 |
> > shows that username. However, in the hardened box, |
24 |
> > issuing "su username" doesn't do anything and whoami |
25 |
> > is still root. I can't see any log messages related |
26 |
> > to |
27 |
> > this. Is this behavior normal? |
28 |
> > |
29 |
> > 2) TTY: |
30 |
> > on my non-hardened gentoo I emerged sys-power/nut |
31 |
> > which is a UPS monitoring tool and needs to access |
32 |
> > /dev/ttySx. The nut driver is supposed to run under |
33 |
> > the nut user/group which is also part of the tty |
34 |
> > group. In other words, the application has correct |
35 |
> > access to the device. However, in my hardened box |
36 |
> > after emerging without errors and verifying that the |
37 |
> > nut user was added to the tty group, the nut app |
38 |
> > fails |
39 |
> > when trying to access /dev/ttyS0 and reports |
40 |
> > "permission denied". |
41 |
> > |
42 |
> > I'm sure all this is due to my lack of experience |
43 |
> > but |
44 |
> > could someone please give me the big picture. |
45 |
> |
46 |
> May I add: |
47 |
> |
48 |
> non-hardened # ls -la /dev/ttyS0 |
49 |
> lrwxrwxrwx 1 root root 5 Apr 27 12:39 /dev/ttyS0 -> |
50 |
> tts/0 |
51 |
> |
52 |
> hardened # ls -la /dev/ttyS0 |
53 |
> crw-rw---- 1 root uucp 4, 64 May 8 00:19 /dev/ttyS0 |
54 |
> |
55 |
> Do I just need to manually change permissions for this |
56 |
> device? |
57 |
> |
58 |
> > Thank you. |
59 |
> > |
60 |
> > Vieri |
61 |
> |
62 |
> __________________________________________________ |
63 |
> Do You Yahoo!? |
64 |
> Tired of spam? Yahoo! Mail has the best spam protection around |
65 |
> http://mail.yahoo.com |
66 |
-- |
67 |
gentoo-hardened@g.o mailing list |