On 17/06/18 09:41, Jean-Pierre Kuypers wrote:
> In article (Dans l'article) , mm0fmf
> wrote (écrivait) :
>
>> On 16/06/2018 19:10, The Natural Philosopher wrote:
>>> On 16/06/18 19:07, Andy Burns wrote:
>>>> The Natural Philosopher wrote:
>>>>
>>>>> Andy Burns wrote:
>>>>>> If you can write a file, the script ought to manage it too,
>>>>>> do you want to post the current version of it?
>>>>>
>>>>> Depends on the user permissions the script is running at....
>>>>
>>>> I am assuming it is running as "pi" ...
>>>>
>>> I am not...:-)
>>>
>>>
>> +1
>
> Using the command "id" would help:
>
> DESCRIPTION
> The id utility displays the user and group names and numeric IDs, of
> the calling process, to the standard output. If the real and effective
> IDs are different, both are displayed, otherwise only the real ID is
> displayed.
>
Like this, you mean?
pi@raspberrypi:~ $ id
uid=1000(pi) gid=1000(pi)
groups=1000(pi),4(adm),20(dialout),24(cdrom),27(sudo),29(audio),44(video),46(pl
ugdev),60(games),100(users),101(input),108(netdev),997(gpio),998(i2c),999(spi)
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|