LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-08-2007, 10:25 AM   #1
xtremeclones
Member
 
Registered: Jan 2006
Posts: 70

Rep: Reputation: 15
User permission issues


Hey all,
I've disabled ssh login for root as a security precaution, i now login to the server with another user, and when i need to do something which requires more permissions i do su, and do it as root, i also do sudo.

However even if i do an su as root, sometimes when i try to do something like stopping or restarting a service it tells me permission denied, is there a way to give my user root privileges? or something similar?

thanks. i also have foo ALL=(ALL) ALL under /etc/sudoers.

thanks for the help
 
Old 03-08-2007, 10:40 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Did you remember to use the '-' option to get the login environment? For example,

su -

or

su - root

If you just use 'su', you keep your existing login environment, which is not what you usually want.
 
Old 03-08-2007, 10:45 AM   #3
xtremeclones
Member
 
Registered: Jan 2006
Posts: 70

Original Poster
Rep: Reputation: 15
yes, i do su root. sorry i didn't specify it.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
permission issues CiscoGeek Linux - Newbie 4 07-30-2006 08:27 AM
Permission Issues turbo_acura Linux - Software 3 02-20-2006 04:24 PM
user permission issues with /dev/ (sound and cdrom) ngan_yine Slackware 3 11-03-2004 05:09 PM
permission issues. neuroX Linux - Software 7 02-17-2004 06:40 AM
Mount and User permission issues Aerlock Linux - Newbie 9 10-19-2003 02:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:23 PM.

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