How to give a specific pyqt program read/write permission?How to give read write permission to a folder and its sub folders and files?change permission to read write and executeGive permission to a specific group without owning itGive specific user permission to write to a folder using +w notationGive Read/Write Access to GroupHow to give permissions to specific command?Read/Write permission of 2nd hard drive
Why are one-word titles so dominant in books, film, and games?
How do journals gain and lose reputation?
Are these 2 resistors in parallel?
Copying files: does Windows write to disk if files are identical?
What is the purpose of polls published by the organization that they are asking about which have leading/confusing questions?
Employer says they want Quality & Quantity, but only pays bonuses based on the latter
Is it OK to call company for more details about a job post (not an application)?
Why are Buddhist concepts so difficult?
How are hillsides farmed?
How do the other crew members know the xenomorph is "big", if they haven't seen it?
How can I increase the rate of regeneration in humans without the possibility of tumors developing?
How are astronauts in the ISS protected from electric shock?
Would there be a difference between boiling whole black peppercorns or fine ground black pepp in a stew?
Why do the new Star Trek series have so few episodes in each season?
If 120 experts in 12 different fields were sent back 10,000 years, could they recreate the 21 century in 100 years?
A pencil in a beaker of water
How can a signal be both periodic and random?
Can a company prevent a co-author of a paper to put his name on it?
How to handle a player wanting to use the (UA) Remote Access spell on an android player character?
What can players do while waiting for a troll to regenerate?
What does "crank old Sabbath" refer to?
How to delete music as it's being played
Can the Infinity Stones be destroyed?
Conditions for minima in calculus of variations
How to give a specific pyqt program read/write permission?
How to give read write permission to a folder and its sub folders and files?change permission to read write and executeGive permission to a specific group without owning itGive specific user permission to write to a folder using +w notationGive Read/Write Access to GroupHow to give permissions to specific command?Read/Write permission of 2nd hard drive
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
I'm using a program called gnuradio-companion. If I start it without root privileges, I can't save anything because I don't have read/write privileges. It gives:
/usr/lib/python2.7/dist-packages/gnuradio/grc/gui/FileDialogs.py:102: GtkWarning: Failed to read filechooser settings from "/home/nick/.config/gtk-2.0/gtkfilechooser.ini": Permission denied
If I start it with
sudo gnuradio-companion
then I'm abusing sudo, and also I get
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
because I lose the runtime variable XDG_RUNTIME_DIR. I can use
sudo -E
to preserve environment variables but then I get
QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
I guess because I'm just borrowing root privileges. Using sudo visudo to modify runtime environments gives the same thing.
How should I configure read/write privileges and run time environments to resolve this?
permissions sudo pyqt
add a comment
|
I'm using a program called gnuradio-companion. If I start it without root privileges, I can't save anything because I don't have read/write privileges. It gives:
/usr/lib/python2.7/dist-packages/gnuradio/grc/gui/FileDialogs.py:102: GtkWarning: Failed to read filechooser settings from "/home/nick/.config/gtk-2.0/gtkfilechooser.ini": Permission denied
If I start it with
sudo gnuradio-companion
then I'm abusing sudo, and also I get
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
because I lose the runtime variable XDG_RUNTIME_DIR. I can use
sudo -E
to preserve environment variables but then I get
QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
I guess because I'm just borrowing root privileges. Using sudo visudo to modify runtime environments gives the same thing.
How should I configure read/write privileges and run time environments to resolve this?
permissions sudo pyqt
add a comment
|
I'm using a program called gnuradio-companion. If I start it without root privileges, I can't save anything because I don't have read/write privileges. It gives:
/usr/lib/python2.7/dist-packages/gnuradio/grc/gui/FileDialogs.py:102: GtkWarning: Failed to read filechooser settings from "/home/nick/.config/gtk-2.0/gtkfilechooser.ini": Permission denied
If I start it with
sudo gnuradio-companion
then I'm abusing sudo, and also I get
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
because I lose the runtime variable XDG_RUNTIME_DIR. I can use
sudo -E
to preserve environment variables but then I get
QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
I guess because I'm just borrowing root privileges. Using sudo visudo to modify runtime environments gives the same thing.
How should I configure read/write privileges and run time environments to resolve this?
permissions sudo pyqt
I'm using a program called gnuradio-companion. If I start it without root privileges, I can't save anything because I don't have read/write privileges. It gives:
/usr/lib/python2.7/dist-packages/gnuradio/grc/gui/FileDialogs.py:102: GtkWarning: Failed to read filechooser settings from "/home/nick/.config/gtk-2.0/gtkfilechooser.ini": Permission denied
If I start it with
sudo gnuradio-companion
then I'm abusing sudo, and also I get
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
because I lose the runtime variable XDG_RUNTIME_DIR. I can use
sudo -E
to preserve environment variables but then I get
QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
I guess because I'm just borrowing root privileges. Using sudo visudo to modify runtime environments gives the same thing.
How should I configure read/write privileges and run time environments to resolve this?
permissions sudo pyqt
permissions sudo pyqt
asked May 29 at 19:20
nickhansenrfnickhansenrf
223 bronze badges
223 bronze badges
add a comment
|
add a comment
|
1 Answer
1
active
oldest
votes
This is why you should not run graphical programs as root in the first place...
Run
sudo chown nick:nick /home/nick/.config/gtk-2.0/gtkfilechooser.ini
to restore ownership of the configuration file. This of course assumes that the username is nick
You may want to do this recursively for all of ~/.config
sudo chown -R nick:nick /home/nick/.config/
Lesson learned. To clarify, file permissions got messed up because the first time I ran was with root privileges, causing the config file to be owned by root and not user.
– nickhansenrf
May 29 at 19:47
add a comment
|
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1147215%2fhow-to-give-a-specific-pyqt-program-read-write-permission%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
This is why you should not run graphical programs as root in the first place...
Run
sudo chown nick:nick /home/nick/.config/gtk-2.0/gtkfilechooser.ini
to restore ownership of the configuration file. This of course assumes that the username is nick
You may want to do this recursively for all of ~/.config
sudo chown -R nick:nick /home/nick/.config/
Lesson learned. To clarify, file permissions got messed up because the first time I ran was with root privileges, causing the config file to be owned by root and not user.
– nickhansenrf
May 29 at 19:47
add a comment
|
This is why you should not run graphical programs as root in the first place...
Run
sudo chown nick:nick /home/nick/.config/gtk-2.0/gtkfilechooser.ini
to restore ownership of the configuration file. This of course assumes that the username is nick
You may want to do this recursively for all of ~/.config
sudo chown -R nick:nick /home/nick/.config/
Lesson learned. To clarify, file permissions got messed up because the first time I ran was with root privileges, causing the config file to be owned by root and not user.
– nickhansenrf
May 29 at 19:47
add a comment
|
This is why you should not run graphical programs as root in the first place...
Run
sudo chown nick:nick /home/nick/.config/gtk-2.0/gtkfilechooser.ini
to restore ownership of the configuration file. This of course assumes that the username is nick
You may want to do this recursively for all of ~/.config
sudo chown -R nick:nick /home/nick/.config/
This is why you should not run graphical programs as root in the first place...
Run
sudo chown nick:nick /home/nick/.config/gtk-2.0/gtkfilechooser.ini
to restore ownership of the configuration file. This of course assumes that the username is nick
You may want to do this recursively for all of ~/.config
sudo chown -R nick:nick /home/nick/.config/
edited May 30 at 12:45
answered May 29 at 19:25
vidarlovidarlo
13.5k6 gold badges33 silver badges59 bronze badges
13.5k6 gold badges33 silver badges59 bronze badges
Lesson learned. To clarify, file permissions got messed up because the first time I ran was with root privileges, causing the config file to be owned by root and not user.
– nickhansenrf
May 29 at 19:47
add a comment
|
Lesson learned. To clarify, file permissions got messed up because the first time I ran was with root privileges, causing the config file to be owned by root and not user.
– nickhansenrf
May 29 at 19:47
Lesson learned. To clarify, file permissions got messed up because the first time I ran was with root privileges, causing the config file to be owned by root and not user.
– nickhansenrf
May 29 at 19:47
Lesson learned. To clarify, file permissions got messed up because the first time I ran was with root privileges, causing the config file to be owned by root and not user.
– nickhansenrf
May 29 at 19:47
add a comment
|
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1147215%2fhow-to-give-a-specific-pyqt-program-read-write-permission%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown