DaemonForums  

Go Back   DaemonForums > Other Operating Systems > Other BSD and UNIX/UNIX-like

Other BSD and UNIX/UNIX-like Any other flavour of BSD or UNIX that does not have a section of its own.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 3rd June 2008
seadog109 seadog109 is offline
Port Guard
 
Join Date: May 2008
Posts: 39
Default Make YOUR user SU

for some reason DesktopBSD says that im System Admin. BUT... i cant even save a file outside of my home folder. is there a way i can make it so my user controls EVERY SINGLE thing on my system?
Reply With Quote
  #2   (View Single Post)  
Old 3rd June 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

Well, I would guess you could run vipw as root and change your UID to 0, in effect making your user account another 'root'.

That is not a secure way of doing things though and typically unless performing some administrative function you usually don't have to leave your home directory.


Unless DesktopBSD has some funky K-Menu there should also be a way to launch Konqueror in "Super User mode' which is run as root !
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #3   (View Single Post)  
Old 4th June 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

@TerryP, Why even give someone instructions to do that? hehe..

Using a super-user account "all the time" is careless and.. insecure, consider an alternative method please, like, sudo or su.

Take care..
Reply With Quote
  #4   (View Single Post)  
Old 4th June 2008
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 652
Default

Firstly to the OP (original poster) DON'T DO WHAT TERRY SAID!! He was, I think, being lighthearted, and as he's one of the nicest people on these forums, I suspect it was a joke.

Folks, let's all be careful what we tell newcomers, even in fun.

One of the main DesktopBSD people is on these forums (though as he's in Europe, he's probably sleeping now) and can probably give a better answer, but my guess is that you're supposed to use sudo. However, I really don't know, not having used DesktopBSD in awhile. In that case, it would be similar to a Mac or Ubuntu, where you have admin rights, to a point, but if dealing with directories outside of your home directory, you'd have to use sudo.

Again, that's only a guess.
Reply With Quote
  #5   (View Single Post)  
Old 4th June 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

Yeah Scottro, he probably would throw pies at me :\

Quote:
Originally Posted by Scottro
DON'T DO WHAT TERRY SAID!!
that is an understatement but you are being polite ^_^

> @TerryP, Why even give someone instructions to do that? hehe..

@BSDfan666 Because he asked how.

The fact that it's _not_ a great idea is beside the point, as long as he owns the computer anyway, it's his to take care of.

I did mention using the file manager with root permissions instead, because that's usually the best way to use a KDE install if you don't want to su - root or use sudo all the time.


In my defense,

Quote:
Originally Posted by Eric Allman
Unix gives you just enough rope to hang yourself --
and then a couple of more feet, just to be sure.
Like C, it assumes your able to tell the difference between smart, stupid, and best compromise of both hehe.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #6   (View Single Post)  
Old 4th June 2008
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 652
Default

Now now. I reiterate, when we speak to newcomers, they don't always realize when we're kidding. Suppose one of us had never driven a car, and someone said, jokingly, the pedal on your right is what slows it down. We're not stupid, we're just uneducated in driving cars.

That's why I feel we should just be careful. Terry is one of the nicest folks on these forums, but we tend to forget how folks might think we know what we're talking about and take a lighthearted statement of ours as the answer, the same way we might trust our silly friend who tells us, yeah, the pedal on the right slows it down.

(At least in the US, the pedal on the right in an automatic shift car is the accelarator, which makes it go faster.)
Reply With Quote
  #7   (View Single Post)  
Old 4th June 2008
seadog109 seadog109 is offline
Port Guard
 
Join Date: May 2008
Posts: 39
Default

yes, i do know about SU and SUDO. but i think it would get a little difficult doing everything i wanted in terminal as root ALL the time. is there a way i could login as root, do what i need to to and then swtich out. i cant login from the main login screen, for it is disabled. is there an alternate route. SU only makes u root in terminal? correct? and SUDO? care to explain SUDO? or shall i look it up...
Reply With Quote
  #8   (View Single Post)  
Old 4th June 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

Ok, so if I understand your somewhat cryptic post correctly, you would like to become the root user in the graphical shell, not just in a single terminal window?

You can use kdesu for KDE, for gnome there's gsu or gtksu or something, not sure...
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #9   (View Single Post)  
Old 4th June 2008
seadog109 seadog109 is offline
Port Guard
 
Join Date: May 2008
Posts: 39
Default

would i have to download kdesu through ports?
Reply With Quote
Old 4th June 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

No, it's part of KDE, it's not present on your system?

Which Window manager are you using anyway?
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
Old 4th June 2008
seadog109 seadog109 is offline
Port Guard
 
Join Date: May 2008
Posts: 39
Default

i am using KDE. is there a specific version? a way to check this version?
Reply With Quote
Old 5th June 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

IF DesktopBSD hasn't removed it, KDE's K-Menu should also has the ability to run Konqueror (the file manager / web browser in KDE3) as "in Super User Mode", if not you can always create an icon on the desktop that executes

kdesu konqueror

(for security you might wish to write the file paths to the programs)

You are probably running KDE 3.5.x.


Most KDE apps (such as kedit) will tell you their version, KDEs version, and Qts version when called on the command line as 'appname --version', some apps do so in the about KDE dialog !, pkg_info has a list, and so on, KDE's control center also tells you it's version.


Using konqueror as root while logged into the desktop as your normal user is probably the best way to manage the system if you don't want to use the terminal.


There is an app called gksudo as well as a kdesudo that use sudo instead of su, in the way that kdesu does -> but kdesu is what comes with KDE.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
Old 5th June 2008
seadog109 seadog109 is offline
Port Guard
 
Join Date: May 2008
Posts: 39
Default

im on KDE 3.5.8. i cant find any tools with any relation to SU or SUDO. i have no idea why. would u happen to know the specific directory the tool is in? any of them?
Reply With Quote
Old 5th June 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

DesktopBSD is FreeBSD based so KDE programs (and stuff from ports in general) would be located in /usr/local/bin and or /usr/local/sbin/
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
Old 5th June 2008
seadog109 seadog109 is offline
Port Guard
 
Join Date: May 2008
Posts: 39
Default

so KDESU wouldnt be in my applications menu?
Reply With Quote
Old 5th June 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

KDESU wouldn't be directly in the menu, because it needs to know what program to run as root before it can be run itself. I.e. it has to be run as 'kdesu appname' not 'kdesu'


If you click 'run' in the K-Menu and hit 'Advanced' you can do the same thing as kdesu using the run dialogs 'run as another user' thing.


Creating a desktop or panel icon to run 'kdesu konqueror' and so on for diff apps you want to start as root isn't to tricky to setup though. Just make sure there is a decent password on the root account if many people are often around your logged in PC, when your not ;-)


I don't do it for kdesu wrappers... but I've always found it best to put very often used apps in quick reach via a button or icon (y).
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
Old 5th June 2008
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 445
Default

@seadog109:

I'd also add that you can fire up a terminal, then use su -m (which preserves environment). After entering root's password and receiving your command prompt you should be able to launch X applications as root... which in most cases you probably shouldn't be doing anyway.
__________________
Kill your t.v.
Reply With Quote
Old 5th June 2008
seadog109 seadog109 is offline
Port Guard
 
Join Date: May 2008
Posts: 39
Default

it didnt work for me. i finally understand what your saying.. but it just didnt run the program
Reply With Quote
Old 7th June 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 696
Default

Quote:
Originally Posted by seadog109 View Post
im on KDE 3.5.8. i cant find any tools with any relation to SU or SUDO. i have no idea why. would u happen to know the specific directory the tool is in? any of them?
kdesu is part of the kdebase3 port, which is required for any and all KDE applications to work. Hence, if you are using KDE, you have kdesu installed.

To use it, from the K menu (start menu), select Run, then type kdesu <nameofapp>. That will pop up a dialog asking for the root password. If you enter it correctly, then <nameofapp> will run as root.

Alternatively, you can create an icon on your desktop, point it at the app you want to run, and then put kdesu in front of the app name in the Execute line.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
Old 18th October 2008
fbsduser fbsduser is offline
Shell Scout
 
Join Date: Aug 2008
Posts: 110
Default

KDESU = KDE3
GKSUDO = GNOME/XFCE
KDESUDO = KDE4
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New FreeBSD user. I need help! rowebil FreeBSD Installation and Upgrading 2 9th March 2009 08:01 PM
user permission... lumiwa FreeBSD General 12 30th September 2008 02:28 AM
dd+user=trouble graudeejs FreeBSD Security 4 26th September 2008 03:48 PM


All times are GMT. The time now is 04:35 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick