LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 12-18-2016, 09:06 AM   #1
d_K
Member
 
Registered: Aug 2016
Posts: 32

Rep: Reputation: Disabled
Question Perhaps foolishly did sudo instead of gksu...


During my attempt at enabling file-sharing within Lubuntu 16.04 32-bit, I did something foolish:

Code:
sudo samba
...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.
 
Old 12-18-2016, 09:55 AM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,642
Blog Entries: 4

Rep: Reputation: 3907Reputation: 3907Reputation: 3907Reputation: 3907Reputation: 3907Reputation: 3907Reputation: 3907Reputation: 3907Reputation: 3907Reputation: 3907Reputation: 3907
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.
Old 12-19-2016, 06:34 AM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
For the "next person"
Differences between gksudo/kdesudo, sudo, and su
 
1 members found this post helpful.
Old 12-19-2016, 05:24 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,315

Rep: Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172
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.
 
Old 12-19-2016, 06:17 PM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
I thought I read "mint" somewhere in this post?
Shoulda, coulda, woulda, I reckon.
 
  


Reply

Tags
samba


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
su vs gksu (who is doing what to whom?) taylorkh Linux - Security 2 06-14-2013 08:08 AM
LXer: The Ultimate Sudo FAQ — To Sudo Or Not To Sudo? LXer Syndicated Linux News 13 04-13-2013 02:36 AM
Sudo works, gksu doesn't schachwizard Linux - Newbie 4 07-11-2011 10:42 PM
gksu with c++ Loser Linux - Software 1 10-23-2008 06:22 PM
Recent upgrade requires me to use sudo for gksu joffa Debian 5 07-15-2005 05:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration