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