How to save config files
- aleksamc
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 567
- Thank you received: 65
08 May 2018 10:25 - 08 May 2018 17:54 #110374
by aleksamc
How to save config files was created by aleksamc
I usecomplite disk image of linux with linuxcnc to make machine.
Config files of cnc machine are opened to edit to anybody. How to hide config folder and to block rights to edit files?
Config files of cnc machine are opened to edit to anybody. How to hide config folder and to block rights to edit files?
Last edit: 08 May 2018 17:54 by aleksamc.
Please Log in or Create an account to join the conversation.
- aleksamc
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 567
- Thank you received: 65
09 May 2018 08:24 #110412
by aleksamc
Replied by aleksamc on topic How to save config files
I'm not good in Linux. May be it's a topic for linux OS forum.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19539
- Thank you received: 6559
09 May 2018 21:12 #110451
by tommylight
Replied by tommylight on topic How to save config files
Copy the config folder to any other folder like documents, there rename it and just add a dot ( . ) in front of it.
That way if something goes wrong, just copy that back and remove the dot.
That dot will make the folder invisible to normal users without activating "show hidden folders".
You can also make it read only, but not the working config folder, Linuxcnc needs to write to that folder while in use.
That way if something goes wrong, just copy that back and remove the dot.
That dot will make the folder invisible to normal users without activating "show hidden folders".
You can also make it read only, but not the working config folder, Linuxcnc needs to write to that folder while in use.
Please Log in or Create an account to join the conversation.
- aleksamc
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 567
- Thank you received: 65
10 May 2018 07:29 #110494
by aleksamc
Replied by aleksamc on topic How to save config files
It's very interesting variant with dot, I will use it.
But if somebody will change something, for example scle, it will be seen after some time when something will be broken.
Do I can to make external rights for linuxcnc program and for user cut rights?
But if somebody will change something, for example scle, it will be seen after some time when something will be broken.
Do I can to make external rights for linuxcnc program and for user cut rights?
Please Log in or Create an account to join the conversation.
- ozzyrob
- Visitor
10 May 2018 08:05 #110495
by ozzyrob
Replied by ozzyrob on topic How to save config files
Please Log in or Create an account to join the conversation.
- aleksamc
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 567
- Thank you received: 65
10 May 2018 08:58 #110498
by aleksamc
Replied by aleksamc on topic How to save config files
I saw function chmod in internet, but I think it's not suits me in such simple way.
I have user login that use program linuxcnc.
If I close permission in such way then opened under "user" linuxcnc will be blocked.
If I could open linuxcnc as program that runs from another log (say CNC) that will have all permissions it will solve my problem.
I have user login that use program linuxcnc.
If I close permission in such way then opened under "user" linuxcnc will be blocked.
If I could open linuxcnc as program that runs from another log (say CNC) that will have all permissions it will solve my problem.
Please Log in or Create an account to join the conversation.
- ozzyrob
- Visitor
10 May 2018 09:29 #110500
by ozzyrob
Replied by ozzyrob on topic How to save config files
All you would to do is change the "write" permission. You leave the read & execute permissions just as they are on the file.
It'll still run just fine.
To run it as another login, that logged in user will need read & write permissions to the folder that the ini file is in.
It'll still run just fine.
Or you can run:
sudo chown root:root ini-file-to-protect
Then only root can edit the ini-file.
I ran
sudo chown root:root axis.sim
The output of ls -la axis.sim is:
-rw-r--r-- 1 root root 5924 May 10 18:33 axis.ini
1st group of 3 rw- owner has read & write permissions
2nd group of 3 r-- group has read only permssions
3rd group of 3 r-- other has read only permissions
The first - is a special bit that we don't really need to talk about
It'll still run just fine.
To run it as another login, that logged in user will need read & write permissions to the folder that the ini file is in.
It'll still run just fine.
Or you can run:
sudo chown root:root ini-file-to-protect
Then only root can edit the ini-file.
I ran
sudo chown root:root axis.sim
The output of ls -la axis.sim is:
-rw-r--r-- 1 root root 5924 May 10 18:33 axis.ini
1st group of 3 rw- owner has read & write permissions
2nd group of 3 r-- group has read only permssions
3rd group of 3 r-- other has read only permissions
The first - is a special bit that we don't really need to talk about
Please Log in or Create an account to join the conversation.
Time to create page: 0.051 seconds