-
AuthorSearch Results
-
May 31, 2021 at 9:56 pm #60676
In reply to: does antix use www-data or apache2
Forum Admin
Dave
If this setup is for building / testing webpages then the easiest would be to make the folder with www-data:users ownership
chown www-data:users /var/www/html chmod -R 664 /var/www/html/If it is only for your user, add a directory to your home directoy like ~/Web-tests, make the ownership your-username:www-data, and change /etc/apache2/sites-enables/000-default document root to /home/your-username/Web-tests/ followed by an apache restart (service apache2 restart).
- This reply was modified 1 year, 11 months ago by Dave.
Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown
May 10, 2021 at 9:08 am #59090In reply to: Asunder problem
Member
roland
The suggested chown has restored the permissions to what they should be however have produced another mystery that I do not understand. I installed 4 identical and brand new 500gb disk drives in this build. At first boot it became apparent they came already formatted as Vfat with names in chinese characters which I did not want. I therefore before the installer ran, removed these with Gparted and replaced them as follows:-
drive 0 – sda1 for antiX, sda5 for swap, sda6 for $HOME and sda7 for data
drive 1 – sdb1 for data, sdb2 for data
drive 2 – sdc1 for data, sdc2 for data
drive 3 – sdd1 for data, sdd2 for dataDisk manager then produced a list of drive labels saying that no drives could be found corresponding to these labels, and inviting me to delete the labels if I wished and which was recommended, I did so.
I took advantage of the facility in 19.3 to install antiX on a dedicated partition sda1, swap on sda5, $HOME on sda6 and data on the remaining volumes.
But Gparted finds another partition and I do not know where it is located, 100mb and which Gparted cannot read, producing i-o errors. It is not visible on the maps of sda sdb sdc or sdd. It is causing no trouble except slows up the load of Gparted considerably and the warning messages have to be repeatedly cancelled, but strictly speaking I have no reason to run Gparted now the build is complete. However I would like to be rid of it after discovering the reason why it appears. I wonder if it has a real existence? I don’t suppose it could be the extended partition containing sda5 sda6 and sda7?
I’m sorry this post is drifting away from the original Asunder topic which I feel is secondary to resolving this mystery. I hope I am not stretching the rule too much?
May 9, 2021 at 4:50 pm #59031In reply to: Asunder problem
Anonymous
‘roland’ (my $home user folder) has ‘root’ ownership
screenshot shows a directory pathed at /media/roland
but
your $HOME directory is probably elsewhere ( /home/roland )
To confirm this, at commandline you can type: echo $HOMESo, yes, the way forward will be to “fix” the permissions of the media subdirectory.
sudo chown -R roland:roland /media/rolandMay 9, 2021 at 9:12 am #59002In reply to: Asunder problem
Member
roland
Thanks Skidoo, I looked at the permissions for every folder in /media and find to my surprise that the folder ‘roland’ (my $home user folder) has ‘root’ ownership whereas all other partition folders have ‘roland’ ownership. This is a recent install, but I have no recollection of having any event during the install process or since that would have caused me to change the ownership. This ownership must I believe have been conferred by the installer or at least at install time.
I have not yet run a chown to rectify matters until I have put the situation before you and request your comments.
Thanks again for your input.
Attachments:
May 6, 2021 at 10:10 am #58717MemberKeeely
I have created a new user on the live system of Core, using the following command:
useradd -m -g users bob -s /bin/bashHowever after running the cli-installer I end up with these permissions on that /home directory:
# ls -l /home total 4 drwxr-xr-x 4 1000 1000 4096 May 6 05:29 bobBut I would expect to see:
drwxr-xr-x 4 bob users 4096 May 6 05:29 bobAfter I manually correct that with:
chown -R bob:users /home/bobssh then starts working correctly.
Just wondering am I creating the user wrong?
thanks!
April 29, 2021 at 4:51 pm #58258In reply to: zzzFM file manager
Anonymous
strange note – I have the same version on my home and work desktops. Both are antiX 19.3 64 bits…
In my work pc the “show bookmarks” and Tools > “New command” show up translated, but not in my home pc (I don’t recall manually editing those entries in my work pc…)[..]
how to re-create an equivalent testing environment
Instead of just apt-installing each new version, it’s advisable to first purge the previously-installed packages AND “sudo updatedb && locate zzzfm” to ensure no stale copies of files were left on the system. Without this check, you might neglect to “rm -rf ~/.config/zzzfm” (which the purge operation does not disturb). To avoid (re)typing, You can paste the series of commands into a l’il script.
edited to add:
To (re)test the first-run behavior of the AsRoot zzzfm window, need to also remove pre-existing root files:
“sudo rm -rf /root/.config/zzzfm”The fact that devices are not showing on the left makes it also consistent view with Root Window, while in SpaceFM Root Window view is not consistent with the default user window, as it looks like zzzFM view.
>>> in SpaceFM Root Window view is not consistent with the default user window
Hold on, IMO the spacefm first-time-run “AsRoot” behavior was, already, correct / desirable. From my perspective, having an AsRoot window which looks comparatively different (even to a jarring extent) first-time-run “AsRoot” is a “GoodThing”. I’m startled to realize that as a side-effect of pre-populating /etc/xdg (and winding up with “consistency”)… we’ve created a “footgun”. The user can (betcha will!) unset the “annoying red colorbar” and will subsequently lose track of “hmm, is this a ‘Root’ file manager instance?” unless/until visually distinct (different) gtk desktop theme is applied via “sudo lxappearance”.
Oh well. The default red colorbar exists for good reason.
“Custom command #1”
? ? ?
label: “Help! Fix my broke.”
scripted action: “cd ~ && chown -R iwannapony:iwannapony”as soon as I switch desktop to Space-IceWM the drag issue is there. My conjecture is that it is because with Space-IceWM it is SpaceFM that plays role. How can I replace Space-IceWM with zzz-IceWM?
reposting a snippet from post#1 in this topic:
If you would like to use zzzfm to manage desktop icons
(ala ‘space-rox’ desktop sessiontype), you can:sudo mv /usr/bin/spacefm /usr/bin/spacefm_REAL
sudo ln /usr/bin/zzzfm /usr/bin/spacefmthen logout, choose a space-* sessiontype, login
(or switch via the desktop “Other Desktops” menu entries)April 28, 2021 at 7:44 pm #58217In reply to: antiX-bullseye-a2-runit_x64-full.iso available
Member
Xecure
If the code is inherited though it’s easier to simply add the user instead of having to modify code from an outside source every time an update occurs; this invites repeated maintenance and code regression potential.
I completely agree. Once a decision is made to fix the future antix-runit releases, I will follow it. For now I am informing on the reason of the problem.
An example of what I am talking about. This is /etc/sv/connman/log/run current content:
#!/bin/sh set -e NAME=connman LOG="/var/log/runit/$NAME" test -d "$LOG" || mkdir "$LOG" && chown -R _runit-log:adm "$LOG" exec chpst -u _runit-log svlogd -tt "$LOG"If no new users are created for future versions, the change without a specific user launching the svlogd program would look like this:
#!/bin/sh set -e NAME=connman LOG="/var/log/runit/$NAME" test -d "$LOG" || mkdir "$LOG" exec chpst svlogd -tt "$LOG"Though this is not needed for all services. Some of them, like elogind, has this log/run instructions:
#!/bin/sh exec logger -p daemon.notice -t runsv-elogindIt is best we can get some input from the developers, so that the small gui-script I am building can follow the same decision.
Attachments:
antiX Live system enthusiast.
General Live Boot Parameters for antiX.April 28, 2021 at 4:24 pm #58209In reply to: antiX-bullseye-a2-runit_x64-full.iso available
Moderator
Brian Masinick
The reason why logs don’t work as expected is related to how the log “runs”. It requires the existence of a user named “_runit-log”, but this user doesn’t exists in /etc/passwd
If the log script changes to NOT use the _runit-log user, the logs work as expected.
Was there a part of the runit installer that should create this new _runit-log user? Is this user needed?
SO, the solution is editing all log/run files to NOT launch (or chown the log directory) OR creating a new _runit-log user (which should be able to run svlogd.
Which is best?
How about adding the log/run files to a group with sufficient access or add a group that has the necessary access?
This could also solve the problem; depends on which mechanism is preferred for configuration and setup. Adding a runit-log username is fine too. I personally have no preference.
If the code is inherited though it’s easier to simply add the user instead of having to modify code from an outside source every time an update occurs; this invites repeated maintenance and code regression potential.
- This reply was modified 2 years ago by Brian Masinick.
--
Brian MasinickApril 28, 2021 at 3:13 pm #58203In reply to: antiX-bullseye-a2-runit_x64-full.iso available
Member
Xecure
The reason why logs don’t work as expected is related to how the log “runs”. It requires the existence of a user named “_runit-log”, but this user doesn’t exists in /etc/passwd
If the log script changes to NOT use the _runit-log user, the logs work as expected.
Was there a part of the runit installer that should create this new _runit-log user? Is this user needed?
SO, the solution is editing all log/run files to NOT launch (or chown the log directory) OR creating a new _runit-log user (which should be able to run svlogd.
Which is best?
antiX Live system enthusiast.
General Live Boot Parameters for antiX.April 22, 2021 at 8:32 pm #57937In reply to: antiX-bullseye-a2-runit_x64-full.iso available
Member
Xecure
Maybe the error reported in htop may be related (something related to runit trying to access a file/folder but doesn’t have the correct permissions)
runsvdir -P /etc/service log: _runit-log:adm’ chown: invalid user: ‘runit-log:adm’ chpst: fatal: unknown user/group: _runit-log chpst: fatal: unknown user/group: _runit-log chpst: fatal: unknown user/group: _runit-log chpst: fatal: unknown user/group: _runit-log chmod: cannot access ‘/var/log/runit/acpid/*’: No such file or directory chpst: fatal: unknown user/group: _runit-log chpst: fatal: unknown user/group: runit-log
We can see runit-log trying to do something, but it doesn’t have permissions (or cannot figure out how to write there).
I was hoping this could help figure out the problem, but I am no expert. I still think figuring this out is resolving an extra bug, just to make runit even more stable.
- This reply was modified 2 years ago by Xecure.
antiX Live system enthusiast.
General Live Boot Parameters for antiX.April 17, 2021 at 7:13 pm #57815In reply to: antiX-bullseye-a2-runit_x64-full.iso available
Member
Xecure
I cannot seem to find the way to stop all the runsv logging.
I see that iotop shows processes like
runsv acpi-support
that when I check the sv status, it says they are down. SO something is calling them and keeps writing who know what, probably a log, but I cannot figure it out at all.
When checking htop (trying to figure out what are the processes with “log” in their name), I can see a process that says:runsvdir -P /etc/service log: _runit-log:adm’ chown: invalid user: ‘runit-log:adm’ chpst: fatal: unknown user/group: _runit-log chpst: fatal: unknown user/group: _runit-log chpst: fatal: unknown user/group: _runit-log chpst: fatal: unknown user/group: _runit-log chmod: cannot access ‘/var/log/runit/acpid/*’: No such file or directory chpst: fatal: unknown user/group: _runit-log chpst: fatal: unknown user/group: runit-log
Which seems to be related to the runsvdir log, but I cannot find what files are being continually written. I am not sure if this is related or not to the current problem.
When I do
sudo lsof | grep "runsv" > runsv-opened.txt
I can see all files related to runsv that are currently open (if I am not mistaken on how lsof works). But this also doesn’t help e figure out how to disable the log or figure out why services that are down are still being written to.I will explore on a live-sub tomorrow to see if things are different in live compared to installed.
antiX Live system enthusiast.
General Live Boot Parameters for antiX.February 5, 2021 at 12:46 pm #53887In reply to: [Solved]: ISO Snapshot of a live system?
MemberModdIt
Hi redrooster, Below should work, I do not know a practical tool with gui.
To make an ISO from your stick and create a file named “bootableusb.iso” Example in your current working directory.
$ sudo dd if=/dev/sdc of=bootableusb.iso
Replace c in device path with your own drive letterAfter your iso is created you will also have to do
$ sudo chown $USER:$USER bootableusb.iso
as the iso image will be owned by root due sudo usage.January 17, 2021 at 6:28 am #50023In reply to: how to switch from jwm to icewm
Anonymous
@stephenbb, clicky https://www.antixforum.com/forums/search/chown/ and read the first 2 posts (one posted by Dave, another posted by skidoo).
November 29, 2020 at 2:16 pm #46092In reply to: [solved] Create linux swap partition
Forum Admin
Dave
What about to use antiX live CD and use GParted tool to delete /home partition and recreate it as extended? Then I could create a new logical partition of 2 GB for swap. Since /home would be destroyed, antiX reinstall is necessary?
That is a valid option.
You would then need to make a directory with your username in the new /home, copy the contents of /etc/skel/ to /home/username/, then change ownership of the new /home/username/ and contents to your username. You may be better to do the copying on your installed system after making the new /home partition.
As root
mkdir /home/my-username/ cp /etc/skel/* /home/my-username/ chown -R my-username:my-username /home/my-usernameHave you tried shrinking the windows partition more?
It seems like you are not using much space in that partition.Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown
November 12, 2020 at 6:13 pm #44877In reply to: after system update Falkon reset
Anonymous
You can use the following to check whether any files within your home directory are not “owned by” you
cd ~ && find . \! -user $USER
and (after pondering how their ownership got hijacked) you can reclaim ownership via
cd ~ && chown -R $USER:$USER *Here’s a scenario which may explain the “how”:
While running a program with elevated permissions, the user clicks a toolbar “Help” button and the program retrieves+displays online html helpdocs (or the program otherwise attempts to xdg-open an html document). Even if the web browser recognizes/blocks “no, cannot run as root” and refuses to render the requested document… during the operation, the ownership of any “touched by root” config files may be altered.
-
AuthorSearch Results
Search Results for 'chown'
-
Search Results
-
I have created a new user on the live system of Core, using the following command:
useradd -m -g users bob -s /bin/bashHowever after running the cli-installer I end up with these permissions on that /home directory:
# ls -l /home total 4 drwxr-xr-x 4 1000 1000 4096 May 6 05:29 bobBut I would expect to see:
drwxr-xr-x 4 bob users 4096 May 6 05:29 bobAfter I manually correct that with:
chown -R bob:users /home/bobssh then starts working correctly.
Just wondering am I creating the user wrong?
thanks!



