LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 05-24-2004, 05:38 PM   #31
Rico16135
Member
 
Registered: Aug 2003
Location: Texas, USA
Distribution: Slackware 9.1, SuSE 9.1
Posts: 245

Rep: Reputation: 30

different distros use different groups for different things, I would check the documentation that comes with your distro, or create your own. For example I made a share group that handles the sharing of files. They (the group) has access to shared folders, as well as apollon and the ftp server's files.
 
Old 05-25-2004, 12:13 AM   #32
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Just make sure you assign a UID of 0 to that new user account and you should be good to go....

Alright, alright.... I'll leave this thread alone.... Just havin some fun....

Last edited by jong357; 05-25-2004 at 12:14 AM.
 
Old 05-25-2004, 12:33 AM   #33
jaz
LQ Newbie
 
Registered: Apr 2004
Location: midwest
Distribution: fedora core 1
Posts: 12

Rep: Reputation: 6
what happens if I rm /*
 
Old 05-25-2004, 12:59 AM   #34
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
Quote:
Originally posted by jaz
what happens if I rm /*
That's rm -rf /*


WARNING: if anyone executes the above command they are responsible for the destruction of everything on their root partition.

Last edited by darthtux; 05-25-2004 at 01:01 AM.
 
Old 05-25-2004, 08:36 AM   #35
Bamse123
Member
 
Registered: Apr 2003
Location: Rovaniemi, Finland
Distribution: Slackware
Posts: 69

Rep: Reputation: 15
Running as root is a typical newbie behaviour. Two friends of mine grabbed Mandrake 9.1 on their home machines, and on the first day tried to give their users root privileges. After that the OSes didn't boot correctly for some reason, everything was messed up and they had to reinstall. They told that the user forums couldn't help them. No one had ever even heard of someone trying such thing.



Regards,
Bamse
 
Old 05-25-2004, 08:39 AM   #36
Bamse123
Member
 
Registered: Apr 2003
Location: Rovaniemi, Finland
Distribution: Slackware
Posts: 69

Rep: Reputation: 15
...Oh, and I don't run as root. Been a full-time Linux user about 2 weeks. I use su because I don't know how to use sudo. "visudo", "sudoers"...

Regards,
Bamse
 
Old 05-25-2004, 08:59 AM   #37
peacebwitchu
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 185

Original Poster
Rep: Reputation: 30
In it's simplest form sudo is pretty easy to use. You use visudo to edit the config file that specifies what users and do what as root. If you type visudo it will bring up the file that needs to be edited generally there is usually some examples. If you want to be able to shutdown your pc you would need a entry similiar to this.


username hostname=/sbin/shutdown -h now



then when it is time to shutdown you would do this "sudo shutdown -h now"


It will prompt you for your password and then proceed to shutdown. This is the most basic use of sudo there are many many ways to use it. Read the man page for sudo and visudo.
 
Old 05-25-2004, 11:20 PM   #38
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
For more info on setting up sudo
http://www.starnetok.net/~jallen/tutorials/su-sudo.html
 
Old 06-21-2004, 06:09 PM   #39
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Rep: Reputation: 128Reputation: 128
Quote:
Originally posted by peacebwitchu
In it's simplest form sudo is pretty easy to use. You use visudo to edit the config file that specifies what users and do what as root. If you type visudo it will bring up the file that needs to be edited generally there is usually some examples. If you want to be able to shutdown your pc you would need a entry similiar to this.


username hostname=/sbin/shutdown -h now



then when it is time to shutdown you would do this "sudo shutdown -h now"


It will prompt you for your password and then proceed to shutdown. This is the most basic use of sudo there are many many ways to use it. Read the man page for sudo and visudo.
I must say, though, that for anyone (newbie or not) who doesn't know how to use vi, you'd better learn how before you issue visudo as root, or you'll get nowhere. No one will ever intuitively figure out how to use this monster, much less how to save or exit. Issue vimtutor to get a basic understanding of this editor - vi is simply not an editor for the uninitiated.

Last edited by Bruce Hill; 06-21-2004 at 06:17 PM.
 
  


Reply


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
newbie - firewall rule danimalz Linux - Security 3 07-30-2005 08:25 AM
Run First As Root? Terje Linux - Software 1 01-10-2005 09:13 AM
I have to ssh -l root to run root processes!? paul.nel Red Hat 3 11-15-2004 12:55 PM
newbie;I am a linux newbie who has installed slackware and have run into a few proble MollyJolly Slackware - Installation 6 06-01-2004 12:21 PM
LimeWire installed as root, can't run if not root sulzla Linux - Newbie 1 07-01-2003 08:48 PM


All times are GMT -5. The time now is 10:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration