You are not logged in.

#1 2018-06-19 15:52:02

olly
Member
From: South West England
Registered: 2017-08-22
Posts: 38

[SOLVED] aurman

Hi and that
I like aurman but I've got a problem that's probably obvious. It can't create its directory for config. I call it as a user with home directories owned by user and group root with permissions set to 0755.
Any ideas?

Olly

Last edited by olly (2018-06-26 17:34:51)


Bullies are only weak people trying to compensate for their own inadequacy. If they can't compete intellectually, they bully.

Offline

#2 2018-06-19 16:10:17

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: [SOLVED] aurman

What is the output of these commands? (please use "[ code ]" tags)

whoami
ls -ld ~/.config ~/.config/aurman ~/.config/aurman/aurman_config

...also, I read the documentation here. Is aurman supposed to create the file? I think YOU are supposed to create the file...

Last edited by drcouzelis (2018-06-19 16:11:47)

Offline

#3 2018-06-19 16:11:29

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,319
Website

Re: [SOLVED] aurman

Please post the actual error messages you get, not your interpretation of them. Please also post the output of `ls -ld` on the target directory, and the directories leading up to it.

EDIT: Snaked by drcouzelis smile

Last edited by WorMzy (2018-06-19 16:12:25)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2018-06-19 16:12:43

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: [SOLVED] aurman

Please show actual commands and output.  Why can't you create a directory?  How are you trying to do so?  What is the output?  Why does your home directory have 'root' as a group?

https://bbs.archlinux.org/viewtopic.php?id=57855

EDIT: doubly snaked.  But yeah, all three of us are looking for the same type of info: specifics.

Last edited by Trilby (2018-06-19 16:13:27)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2018-06-19 16:57:14

olly
Member
From: South West England
Registered: 2017-08-22
Posts: 38

Re: [SOLVED] aurman

Got it. Output is;

2018-06-19 17:43:30,017 - parsing_config - read_config - ERROR - Creating config dir of aurman failed

I think the documentation says you may use the config file. Aurman creates it. I'm actually using aurman to install itself from an original install  from the built tarball. Is it not running as owner of the home directories? Or it's own user. Is this the correct way to show code?

Directory settings are 0755 for the directories for non owner to read and access, and files 0744 for read only.

If I set everything from home downward to 0777 it works. But why

Last edited by olly (2018-06-19 17:27:44)


Bullies are only weak people trying to compensate for their own inadequacy. If they can't compete intellectually, they bully.

Offline

#6 2018-06-19 17:44:03

olly
Member
From: South West England
Registered: 2017-08-22
Posts: 38

Re: [SOLVED] aurman

Output

ls -ld drwxr-xr-x ml root

I'm not trying to create a directory myself. Group is root because everything is root except a nobody type user created simply to satisfy arch's decision not to allow root to build aur packages in case it damages the system. Can't see why, it's my system.

Last edited by olly (2018-06-19 17:51:28)


Bullies are only weak people trying to compensate for their own inadequacy. If they can't compete intellectually, they bully.

Offline

#7 2018-06-19 17:58:08

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: [SOLVED] aurman

The permissions appear to be messed up.

You didn't post the output of the two commands I posted. We can't help unless you provide the information requested.

I'm confused about the name of the user you are using to run everything. For example, if you use "root" to do everything on your computer with the exception of building AUR packages, and you run aurman as a regular user (for example, a made up "auruser" account), then permission errors are to be expected. A regular user cannot write to a home directory owned by anyone else, like root.

Offline

#8 2018-06-19 18:08:04

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: [SOLVED] aurman

olly wrote:

Output...

What is that, that's not actual terminal output from a command.  It has recognizable bits and pieces, but they are stuck together incoherently (what, for example is that 'ml'?).  Please post the full command and full output (in code tags)

olly wrote:

I'm not trying to create a directory myself. Group is root because everything is root except a nobody type user created simply to satisfy arch's decision not to allow root to build aur packages

Wait, so you don't even have a regular user account on the machine?

Last edited by Trilby (2018-06-19 18:08:38)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#9 2018-06-19 18:34:06

olly
Member
From: South West England
Registered: 2017-08-22
Posts: 38

Re: [SOLVED] aurman

whoami
ml
ls -ld ~/.config
drwxr-xr-x 7 ml root 4096 Jun 19 17:41 /home/ml/.config


There are no subdirectories
.thats run as user ml as airman is called

Sorry about the previous, I'm on a mobile..

I have one user account on the system called ml.i  have set permissions for all directories from home/ml dowmward as I've done 7 for owner ml, and read and access for directories 5, read for files 4 none are executable (0755 directories 0744 files) . Then call aurman as user ml then access would be allowed as owner 0755 it must know it's user ml as that is where is trying to create a  comfig..what I'm trying to find out is whether auman is running as ml when trying to create the config or itself. If anyone else has found it. I run the whole system as root, yes.

Last edited by olly (2018-06-19 18:39:30)


Bullies are only weak people trying to compensate for their own inadequacy. If they can't compete intellectually, they bully.

Offline

#10 2018-06-19 18:56:05

olly
Member
From: South West England
Registered: 2017-08-22
Posts: 38

Re: [SOLVED] aurman

Additional
This problem only occurs for the creation of the config file. When it exists and aurman is called by runuser then it happily creates its work directories in the ml/.cache. directory and subdirectories beyond. Permissions are ok when rwx is specified for the home directories of the user named incalling aurman.

Last edited by olly (2018-06-19 18:56:54)


Bullies are only weak people trying to compensate for their own inadequacy. If they can't compete intellectually, they bully.

Offline

#11 2018-06-19 19:07:55

olly
Member
From: South West England
Registered: 2017-08-22
Posts: 38

Re: [SOLVED] aurman

2018-06-19 17:43:30,017 - parsing_config - read_config - ERROR - Creating config dir of aurman failed

I assume this is what you mean as incoherent output. It is the output on the terminal of aurman as it is called. I believe it to be python


Bullies are only weak people trying to compensate for their own inadequacy. If they can't compete intellectually, they bully.

Offline

#12 2018-06-19 19:34:27

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: [SOLVED] aurman

Please learn to use the edit button rather than serial posting.  I claimed the output in post #6 was incoherent.  You've now clarified what that was supposed to be.  However, I still can't make any sense of this.  You say you have no user, just root - but now you say you have the user 'ml'.  Which is it?  And you say you've chmoded everything under your home directory to be executable by the owner (that's what the first '7' is).  That's a horrible idea.  And you've chowned everything to belong to the 'root' group.  That's also a bad idea.  Don't recursively modify ownership and permissions.

Honestly I have no idea where to go with this - so I'll leave this thread be at this point.  My only suggestion would be to create a new user (optionally deleting the existing one), and start again fresh, and don't randomly chmod/chown things for no reason.

Last edited by Trilby (2018-06-19 19:36:17)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#13 2018-06-19 19:40:25

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: [SOLVED] aurman

olly wrote:

Then call aurman as user ml then access would be allowed as owner 0755 it must know it's user ml as that is where is trying to create a  comfig..

Does "aurman" now work correctly?

You have a very unique configuration (run only as "root", changing the default directory permissions). I don't think I can help you any more. It sounds like you solved the problem your own way.

olly wrote:

what I'm trying to find out is whether auman is running as ml when trying to create the config or itself. If anyone else has found it.

I think you can use the command "ps -elf | grep aurman" while "aurman" is running to see the name of the user running it.

Good luck!

Offline

#14 2018-06-19 20:05:17

olly
Member
From: South West England
Registered: 2017-08-22
Posts: 38

Re: [SOLVED] aurman

Thank you drcouzelis
At last a genuine and helpful reply. I think it's probably a bug, but best advice is to research to find if I'm at fault or anyone else has the same problem before reporting it to the developer. I'll give your suggestion a try
  Thanks Olly


Bullies are only weak people trying to compensate for their own inadequacy. If they can't compete intellectually, they bully.

Offline

#15 2018-06-19 22:14:22

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] aurman

It's trying to run

install -dm700 ~/.config/aurman/

Why does this not work in your setup?


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#16 2018-06-20 07:22:28

olly
Member
From: South West England
Registered: 2017-08-22
Posts: 38

Re: [SOLVED] aurman

Thanks Eli

That is the question as it  creates it's own work files later with no problem with same permissions on .config and .cache.
is it unning this in a bash script, or somehow from python which I believe it's written in.
But you've made me think here....
In the error message there is no mention of the location of the the failed file creation, and as you say it's using ~/  and it's written in python , could at this point $HOME or XDG equivalent not have been adopted?
But if is a straight bash script, then the install command  should work, but maybe something else.


Bullies are only weak people trying to compensate for their own inadequacy. If they can't compete intellectually, they bully.

Offline

#17 2018-06-20 08:35:23

olly
Member
From: South West England
Registered: 2017-08-22
Posts: 38

Re: [SOLVED] aurman

Eli
You're absolutely correct. Simple as that
Hands up time. My fault and apologies to aurman.I didn't realise that when you create a user and set permissions it does not create a .config file for that user. But xfce does and sets ownership as it's condition at the time. My cleanup routines reset things so didn't spot it. What I need to do is set inheritance values for sub home directories so anything system created will conform
Seems like I couldn't see the forest for the trees


Bullies are only weak people trying to compensate for their own inadequacy. If they can't compete intellectually, they bully.

Offline

#18 2018-06-21 21:55:08

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] aurman

olly wrote:

Thanks Eli

That is the question as it  creates it's own work files later with no problem with same permissions on .config and .cache.
is it unning this in a bash script, or somehow from python which I believe it's written in.
But you've made me think here....
In the error message there is no mention of the location of the the failed file creation, and as you say it's using ~/  and it's written in python , could at this point $HOME or XDG equivalent not have been adopted?

It does.

But if is a straight bash script, then the install command  should work, but maybe something else.

It doesn't really matter whether a command is run using bash or via python's subprocess.run()

olly wrote:

Eli
You're absolutely correct. Simple as that
Hands up time. My fault and apologies to aurman.I didn't realise that when you create a user and set permissions it does not create a .config file for that user. But xfce does and sets ownership as it's condition at the time. My cleanup routines reset things so didn't spot it. What I need to do is set inheritance values for sub home directories so anything system created will conform
Seems like I couldn't see the forest for the trees

I'm, uh, happy you got this working. But I still don't understand why this did not work. What permissions did xfce erroneously-or-not set, aurman and xfce should both be creating files in the home directory of the user they are running as. So I'm not sure how they'd both be creating files in the same XDG_* directory but with different permissions...


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#19 2018-06-22 12:53:49

olly
Member
From: South West England
Registered: 2017-08-22
Posts: 38

Re: [SOLVED] aurman

It didn't. I did. My mistake. I've been trying to circumvent the ban on running makepkg as root and creating a user to do so. Creating a user but with no config file, (trying) to modify xfce session xml to call xfwm with --replace and sending the result to user's config, yes, as root. Prepare environment as root and call aurman as user, clean up resetting users files and finding user owning config.  Now I use runuser to call all prepare and run functions  for aurman / makepkg , as switching user can also cause filepath problems, though runuser does preserve this, shell change excludes previous function calls. This all because I don't seem able to

runuser -u somename -- source program

I like aurman and really hope the guy sticks at it in spite of the abuse he gets. He has a talent.

My simple mistake, yes, but it also lets me get the measure  of the forum.

Last edited by olly (2018-06-23 09:38:29)


Bullies are only weak people trying to compensate for their own inadequacy. If they can't compete intellectually, they bully.

Offline

#20 2018-06-22 13:21:56

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: [SOLVED] aurman

Eschwartz, I wouldn't worry about it too much, simply because this is such a unique user configuration.

I THINK what happened was...

User is using the username "root" for everything.

User wants to use "aurman" for AUR packages.

Compiling AUR packages as root is not allowed.

The user creates a new user called "ml" to run "sudo -u ml aurman".

Even though "/root/.config" exists, "/home/ml/.config" does not exist, causing the creation of "/home/ml/.config/aurman" to fail.

The Arch Linux forum members ask for a bunch of info and collect info about the "root" user home directory and not the "ml" user home directory.

...to be clear, I am NOT saying that this is what the actual issue was, but I just want to point out that we really can't know without a lot more information about the unique configuration of the installation, and at this point I don't think it really matters.

Offline

#21 2018-06-24 03:50:26

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] aurman

drcouzelis wrote:

Eschwartz, I wouldn't worry about it too much, simply because this is such a unique user configuration.

I THINK what happened was...

User is using the username "root" for everything.

User wants to use "aurman" for AUR packages.

Compiling AUR packages as root is not allowed.

The user creates a new user called "ml" to run "sudo -u ml aurman".

Even though "/root/.config" exists, "/home/ml/.config" does not exist, causing the creation of "/home/ml/.config/aurman" to fail.

No, this should work fine. I guess the issue was that some part of olly's setup created /home/ml/.config with the wrong permissions, leading to permission denied errors when aurman tried to create the config file in a root-owned directory. e.g.

olly wrote:

Prepare environment as root and call aurman as user, clean up resetting users files and finding user owning config.

drcouzelis wrote:

The Arch Linux forum members ask for a bunch of info and collect info about the "root" user home directory and not the "ml" user home directory.

...to be clear, I am NOT saying that this is what the actual issue was, but I just want to point out that we really can't know without a lot more information about the unique configuration of the installation, and at this point I don't think it really matters.


@olly,

FWIW I've got a PR for aurman: https://github.com/polygamma/aurman/pul … e1c3a726c0

Using python's os.makedirs is superior to shelling out to the install -dm700 command, and also means python's builtin exception handler would raise more informative errors in this exact scenario. So instead of "Creating config dir of aurman failed" you'd get PermissionError: [Errno 13] Permission denied: '/home/ml/.config/aurman_config', and then a second traceback stating that "Creating config dir of aurman failed".


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#22 2018-06-25 09:43:30

olly
Member
From: South West England
Registered: 2017-08-22
Posts: 38

Re: [SOLVED] aurman

Exactly correct. Which goes to show the benefits of having a forum where you can  kick around ideas, and someone can help you reveal basic errors missed ( the 'how could I have missed that' moment)  without bothering the developer for no reason. All's well that ends well.


Bullies are only weak people trying to compensate for their own inadequacy. If they can't compete intellectually, they bully.

Offline

Board footer

Powered by FluxBB