mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Warning UID is greater than 99
@ 2015-09-10 14:23 Oliver.Graute
  2015-09-10 15:04 ` Marc Kleine-Budde
  0 siblings, 1 reply; 4+ messages in thread
From: Oliver.Graute @ 2015-09-10 14:23 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1.1: Type: text/plain, Size: 955 bytes --]


Hello,

in my rule file I create some directorys with special UID and GID  for a
sftp user.

ifdef PTXCONF_DNT3202STARTUP_CREATE_SFTP_DIR
         @$(call install_copy, dnt3202startup, 0, 0, 0755,       /sftp/)
         @$(call install_copy, dnt3202startup, 0, 0,
0755,       /sftp/sftp_user/)
         @$(call install_copy, dnt3202startup, 1001, 1000,
0755, /sftp/sftp_user/incoming)
         @$(call install_copy, dnt3202startup, 1001, 1000,
0755, /sftp/sftp_user/outgoing)
endif

this is working fine for me on the target. But today I noticed this Warning
in ptxdist log:

*** Warning: The following files have a UID greater than 99.
You probably want to chown these to a system user:
drwxr-xr-x 2 lgl mgo 4096 Sep 10 15:40 ./home/shell_user
drwxr-xr-x 2 lgl mgo 4096 Sep 10 15:40 ./sftp/sftp_user/incoming
drwxr-xr-x 2 lgl mgo 4096 Sep 10 15:40 ./sftp/sftp_user/outgoing

is this something to worry about? or can I ignore that?

Best regards,

Oliver

[-- Attachment #1.1.2: Type: text/html, Size: 1080 bytes --]

[-- Attachment #1.2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 2446 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] Warning UID is greater than 99
  2015-09-10 14:23 [ptxdist] Warning UID is greater than 99 Oliver.Graute
@ 2015-09-10 15:04 ` Marc Kleine-Budde
  2015-09-13  3:58   ` Enrico Weigelt, metux IT consult
  0 siblings, 1 reply; 4+ messages in thread
From: Marc Kleine-Budde @ 2015-09-10 15:04 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 1390 bytes --]

On 09/10/2015 04:23 PM, Oliver.Graute@neuhaus.de wrote:
> in my rule file I create some directorys with special UID and GID for a
> sftp user.
> 
> ifdef PTXCONF_DNT3202STARTUP_CREATE_SFTP_DIR
> @$(call install_copy, dnt3202startup, 0, 0, 0755, /sftp/)
> @$(call install_copy, dnt3202startup, 0, 0, 0755, /sftp/sftp_user/)
> @$(call install_copy, dnt3202startup, 1001, 1000, 0755,
> /sftp/sftp_user/incoming)
> @$(call install_copy, dnt3202startup, 1001, 1000, 0755,
> /sftp/sftp_user/outgoing)
> endif

Better use the user and group name from /etc/{passwd,shadow} not the
numerical value.

> this is working fine for me on the target. But today I noticed this
> Warning in ptxdist log:
> 
> *** Warning: The following files have a UID greater than 99.
> You probably want to chown these to a system user:
> drwxr-xr-x 2 lgl mgo 4096 Sep 10 15:40 ./home/shell_user
> drwxr-xr-x 2 lgl mgo 4096 Sep 10 15:40 ./sftp/sftp_user/incoming
> drwxr-xr-x 2 lgl mgo 4096 Sep 10 15:40 ./sftp/sftp_user/outgoing
> 
> is this something to worry about? or can I ignore that?

Just Ignore it.

Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] Warning UID is greater than 99
  2015-09-10 15:04 ` Marc Kleine-Budde
@ 2015-09-13  3:58   ` Enrico Weigelt, metux IT consult
  2015-09-13 13:01     ` Marc Kleine-Budde
  0 siblings, 1 reply; 4+ messages in thread
From: Enrico Weigelt, metux IT consult @ 2015-09-13  3:58 UTC (permalink / raw)
  To: ptxdist

On 10.09.2015 17:04, Marc Kleine-Budde wrote:

> Better use the user and group name from /etc/{passwd,shadow} not the
> numerical value.

The names from ./projectroot/etc/passwd can be used directly in the
rule file ? Cool, that's new to me. (btw: how exactly is that
implemented ?)

Since what version does that work ? (my project is still on an older
ptxd version).

--mtx


mit freundlichen Grüßen
--
Enrico Weigelt,
metux IT consulting
+49-151-27565287

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] Warning UID is greater than 99
  2015-09-13  3:58   ` Enrico Weigelt, metux IT consult
@ 2015-09-13 13:01     ` Marc Kleine-Budde
  0 siblings, 0 replies; 4+ messages in thread
From: Marc Kleine-Budde @ 2015-09-13 13:01 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 778 bytes --]

On 09/13/2015 05:58 AM, Enrico Weigelt, metux IT consult wrote:
> On 10.09.2015 17:04, Marc Kleine-Budde wrote:
> 
>> Better use the user and group name from /etc/{passwd,shadow} not the
>> numerical value.
> 
> The names from ./projectroot/etc/passwd can be used directly in the
> rule file ? Cool, that's new to me. (btw: how exactly is that
> implemented ?)
> 
> Since what version does that work ? (my project is still on an older
> ptxd version).

Since ptxdist-2012.07.0~562

Marc
-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-09-13 13:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-10 14:23 [ptxdist] Warning UID is greater than 99 Oliver.Graute
2015-09-10 15:04 ` Marc Kleine-Budde
2015-09-13  3:58   ` Enrico Weigelt, metux IT consult
2015-09-13 13:01     ` Marc Kleine-Budde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox