1 |
Ok, even more confusing: |
2 |
|
3 |
I inserted this into my rcS startup script (which is the only way |
4 |
I've been able to do debugging: |
5 |
|
6 |
echo report uid |
7 |
id |
8 |
|
9 |
and this is what I see: |
10 |
|
11 |
uid=4294967295 gid=42967295 |
12 |
|
13 |
Wow, so somehow inittab is getting very confused about the uid... |
14 |
|
15 |
Did Linux 2.6 increase the size of the uid's from 16 to 32 bits, or |
16 |
is this handled in uclibc? Is it possible one of those two is |
17 |
confused/misconfigured? |
18 |
|
19 |
|
20 |
On Jun 27, 2006, at 4:40 PM, Anish Patel wrote: |
21 |
|
22 |
> i am gonna venture and something is going wrong when it is being |
23 |
> merged in. |
24 |
> i am building busybox 1.1.3 and 1.1.0 buy hand it they work fine |
25 |
> for me. |
26 |
> |
27 |
> |
28 |
> ----- Original Message ----- |
29 |
> From: "Joshua ChaitinPollak" <jpollak@×××××××××××.com> |
30 |
> To: <gentoo-embedded@l.g.o> |
31 |
> Sent: Tuesday, June 27, 2006 4:29 PM |
32 |
> Subject: Re: [gentoo-embedded] Busybox login requires root |
33 |
> priviledges?? |
34 |
> |
35 |
> |
36 |
> | Brilliant! Do you have a work around, or what are you doing about |
37 |
> it? |
38 |
> | |
39 |
> | I just tried posting to the busybox list, hopefully that will get a |
40 |
> | response.. |
41 |
> | |
42 |
> | Could it have something to do with /etc/passwd or /etc/shadow being |
43 |
> | improperly set? |
44 |
> | |
45 |
> | Are you NFS mounting /, like I am, and could that have anything |
46 |
> to do |
47 |
> | with it? |
48 |
> | |
49 |
> | On Jun 27, 2006, at 3:39 PM, Morgan, Austin D. wrote: |
50 |
> | |
51 |
> | > I konw that I have been fighting with this for a while now, |
52 |
> glad to |
53 |
> | > know I |
54 |
> | > am not the only one. I have posted this same issue to the uclibc |
55 |
> | > list ( |
56 |
> | > according to the web page that is the appropriate place, but |
57 |
> have not |
58 |
> | > recieved any repsonse other than I need to set my permissions |
59 |
> | > correctly. |
60 |
> | > |
61 |
> | > Austin Morgan |
62 |
> | > |
63 |
> | > |
64 |
> | > -----Original Message----- |
65 |
> | > From: gentoo-embedded+bounces-963- |
66 |
> | > AUSTIN.D.MORGAN=saic.com@g.o on |
67 |
> | > behalf of Joshua ChaitinPollak |
68 |
> | > Sent: Tue 6/27/2006 2:13 PM |
69 |
> | > To: gentoo-embedded@l.g.o |
70 |
> | > Subject: Re: [gentoo-embedded] Busybox login requires root |
71 |
> | > priviledges?? |
72 |
> | > |
73 |
> | > Ok, I hacked the busybox source to print out the uid busybox |
74 |
> things |
75 |
> | > it is running as when I get the "this applet requires suid" error: |
76 |
> | > |
77 |
> | > if (geteuid() != 0) { |
78 |
> | > fprintf(stderr, "euid = %d, ruid = %d", geteuid(), getuid()); |
79 |
> | > // bb standard error here |
80 |
> | > } |
81 |
> | > |
82 |
> | > and I get: |
83 |
> | > |
84 |
> | > euid = -1, ruid = -1 |
85 |
> | > |
86 |
> | > What makes busybox think it is running as user -1? What does that |
87 |
> | > mean when the uid functions return that? |
88 |
> | > |
89 |
> | > Is this off-topic for Gentoo-Embedded, should I take this to |
90 |
> the bb |
91 |
> | > lists? |
92 |
> | > |
93 |
> | > -Josh |
94 |
> | > |
95 |
> | > On Jun 27, 2006, at 11:03 AM, Joshua ChaitinPollak wrote: |
96 |
> | > |
97 |
> | >> Hum, trying to emerge 1.1.3 fails when trying to apply the |
98 |
> busybox/ |
99 |
> | >> files/1.1.1/bb.patch file. I commented out that line of the |
100 |
> ebuild |
101 |
> | >> and now it builds. Unfortunately, it didn't solve my problem: |
102 |
> | >> |
103 |
> | >> Soekris login: root |
104 |
> | >> login: This applet requires root priviledges! |
105 |
> | >> |
106 |
> | >> Soekris login: |
107 |
> | >> |
108 |
> | >> |
109 |
> | >> Huh??? |
110 |
> | >> |
111 |
> | >> |
112 |
> | >> On Jun 27, 2006, at 8:44 AM, Anish Patel wrote: |
113 |
> | >> |
114 |
> | >>> IIRC 1.1.0 had some problems with login, try 1.1.3 it seems |
115 |
> to be |
116 |
> | >>> working fine. |
117 |
> | >>> |
118 |
> | >>> ----- Original Message ----- From: "Joshua ChaitinPollak" |
119 |
> | >>> <jpollak@×××××××××××.com> |
120 |
> | >>> To: <gentoo-embedded@l.g.o> |
121 |
> | >>> Sent: Monday, June 26, 2006 10:52 PM |
122 |
> | >>> Subject: Re: [gentoo-embedded] Busybox login requires root |
123 |
> | >>> priviledges?? |
124 |
> | >>> |
125 |
> | >>> |
126 |
> | >>>> Oops, sorry, 1.1.0. |
127 |
> | >>>> |
128 |
> | >>>> On Jun 26, 2006, at 10:17 PM, Anish Patel wrote: |
129 |
> | >>>> |
130 |
> | >>>>> what version of busybox? |
131 |
> | >>>>> |
132 |
> | >>>>> ----- Original Message ----- From: "Joshua ChaitinPollak" |
133 |
> | >>>>> <jpollak@×××××××××××.com> |
134 |
> | >>>>> To: <gentoo-embedded@l.g.o> |
135 |
> | >>>>> Sent: Monday, June 26, 2006 7:37 PM |
136 |
> | >>>>> Subject: [gentoo-embedded] Busybox login requires root |
137 |
> | >>>>> priviledges?? |
138 |
> | >>>>> |
139 |
> | >>>>> |
140 |
> | >>>>>> Ok, I searched around on this one and I'm stumped. When I |
141 |
> type |
142 |
> | >>>>>> 'root' at the login: prompt, I get the error message: |
143 |
> | >>>>>> login: This applet requires root priviledges! |
144 |
> | >>>>>> This seems to be a common problem, except I've never seen it |
145 |
> | >>>>>> reported for the login command. Also, I have busybox |
146 |
> | >>>>>> configured NOT to use the /etc/busybox.conf [SUID] |
147 |
> block, and |
148 |
> | >>>>>> I've tried with /bin/busybox both SUID/GUID, and with it |
149 |
> set |
150 |
> | >>>>>> to 777 permissions. |
151 |
> | >>>>>> Does anyone have any idea why I can't login? |
152 |
> | >>>>>> This used to work fine on my Linux 2.4 build, but now that |
153 |
> I've |
154 |
> | >>>>>> upgraded to 2.6, everything has gone pear-shaped. |
155 |
> | >>>>>> -Josh |
156 |
> | >>>>>> -- |
157 |
> | >>>>>> Joshua ChaitinPollak |
158 |
> | >>>>>> Software Engineer |
159 |
> | >>>>>> Kiva Systems |
160 |
> | >>>>>> -- |
161 |
> | >>>>>> gentoo-embedded@g.o mailing list |
162 |
> | >>>>>> |
163 |
> | >>>>> -- |
164 |
> | >>>>> gentoo-embedded@g.o mailing list |
165 |
> | >>>>> |
166 |
> | >>>>> |
167 |
> | >>>> |
168 |
> | >>>> -- |
169 |
> | >>>> Joshua ChaitinPollak |
170 |
> | >>>> Software Engineer |
171 |
> | >>>> Kiva Systems |
172 |
> | >>>> |
173 |
> | >>>> |
174 |
> | >>>> -- |
175 |
> | >>>> gentoo-embedded@g.o mailing list |
176 |
> | >>> |
177 |
> | >>> -- |
178 |
> | >>> gentoo-embedded@g.o mailing list |
179 |
> | >>> |
180 |
> | >>> |
181 |
> | >> |
182 |
> | >> -- |
183 |
> | >> Joshua ChaitinPollak |
184 |
> | >> Software Engineer |
185 |
> | >> Kiva Systems |
186 |
> | >> |
187 |
> | >> |
188 |
> | >> -- |
189 |
> | >> gentoo-embedded@g.o mailing list |
190 |
> | >> |
191 |
> | >> |
192 |
> | > |
193 |
> | > -- |
194 |
> | > Joshua ChaitinPollak |
195 |
> | > Software Engineer |
196 |
> | > Kiva Systems |
197 |
> | > |
198 |
> | > |
199 |
> | > -- |
200 |
> | > gentoo-embedded@g.o mailing list |
201 |
> | > |
202 |
> | > -- |
203 |
> | > gentoo-embedded@g.o mailing list |
204 |
> | > |
205 |
> | > |
206 |
> | |
207 |
> | -- |
208 |
> | Joshua ChaitinPollak |
209 |
> | Software Engineer |
210 |
> | Kiva Systems |
211 |
> | |
212 |
> | |
213 |
> | -- |
214 |
> | gentoo-embedded@g.o mailing list |
215 |
> | |
216 |
> -- |
217 |
> gentoo-embedded@g.o mailing list |
218 |
> |
219 |
> |
220 |
|
221 |
-- |
222 |
Joshua ChaitinPollak |
223 |
Software Engineer |
224 |
Kiva Systems |
225 |
|
226 |
|
227 |
-- |
228 |
gentoo-embedded@g.o mailing list |