Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-18-2016, 09:06 AM
|
#1
|
Member
Registered: Aug 2016
Posts: 32
Rep:
|
Perhaps foolishly did sudo instead of gksu...
During my attempt at enabling file-sharing within Lubuntu 16.04 32-bit, I did something foolish:
...entered my pw and nothing happened and samba soon errored with the basic ubuntu error message box. I've since learned that the graphical application needed to manage shares is system-config-samba and gksu is needed for that app to start. Now obviously samba is not a 'gui', I'm worried about the file permissions associated with doing something like sudo leafpad '/bla/bla/bla' (when the correct usage is gksu leafpad.)
Btw, I've got the file-sharing now sorted, I'm just wondering about the implications of doing the above.
Last edited by d_K; 12-18-2016 at 09:16 AM.
|
|
|
12-18-2016, 09:55 AM
|
#2
|
LQ Guru
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,642
|
If you are doing some graphical work or anything else that may leave residue in your home directory, use sudo -H instead of plain sudo. Or use the -i option. Either way, without -H or -i, you will end up with files and or directories owned by root where they should have been owned by your own account. The utility chown will fix things up, but best to act proactively instead.
|
|
1 members found this post helpful.
|
12-19-2016, 06:34 AM
|
#3
|
LQ Veteran
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Rep:
|
|
|
1 members found this post helpful.
|
12-19-2016, 05:24 PM
|
#4
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,315
|
Handy link - however, there are distros that insist on policyit, and so don't ship things like gksudo.
Fedora didn't even ship sudo a few releases back although it was in the repos.
|
|
|
12-19-2016, 06:17 PM
|
#5
|
LQ Veteran
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Rep:
|
I thought I read "mint" somewhere in this post?
Shoulda, coulda, woulda, I reckon.
|
|
|
All times are GMT -5. The time now is 02:17 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|