how can i get root privledges on my user account without using root login

i am having problems with privileges i have created a new user with my name, but i cant get root privileges on it.
please help, i need the same privileges as the root profile.

No, you don’t.

Root privileges go with uid of 0.

Logging in to the GUI with root privileges is unwise. It isn’t that hard to use “sudo” or “su” to become root when needed, but best to be an ordinary user for most of what you do.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You can use sudo (command line), gnomesu (Gnome) or kdesu (KDE) in order
to elevate privileges for a purpose. Running with ‘root’ privileges 24x7
is a foolish idea but I assume that is not what you are wanting to do but
rather want to do certain things with elevated privileges (necessary at
times).

Good luck.

On 02/05/2011 11:36 AM, lukemersh wrote:
>
> i am having problems with privileges i have created a new user with my
> name, but i cant get root privileges on it.
> please help, i need the same privileges as the root profile.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJNTZ0/AAoJEF+XTK08PnB5eiEP/1txuBwII+sfUEvVCTcYIUHe
CooJSrJQt3uvNpevT5z6lHE3+X3SS3FI61izWchKAUJI4zMSf9ZoFAEVUuGCqbQU
koaMtvT0bwngGGIocO9AVkaMfVxSZJbCApL/q/J4WfLnLiOAkwmAk1/Y3TezMg8j
ljhiufl8x9Hed7jsSOytBYRS4oT1E+hSYFR+NeqmtogRTxjKanAtJopMC9zX7exx
cjwGeoaKItqGJpEsZxmlvPbbTM477HGF3ClhKHV2u9nrG1v9Kv8Xccx5uTz9InIv
ASeFHDis0yc4ecsT8d7uAynbIXhBmw97c+Gq8hknXI/LnSWaP1KDjaNLdppHdKzh
oKwyHlzoTwwnZADec9by3THWNdEP7buTld4w+KYozCwN7EG6vPsfDjVi/VzrHLF5
Ql9SEqzdJtaUz2HOCrLYemWppu0BfG2ECv6tlke8PdETwiN0DqzX9FMVtnhUIkiP
GSc0w1RuRCDzRlqlkuX6CF0D+HTTUtkEmNJraVPCmSmKkkDdtBlHU5VUrRlWqYR0
rRCFikmvy5WW4AjmENzvmGFa4ka3/DARzQqA7qcjh8tPvPxMsMoWrzChfdxFPOkc
0XXrkxcSeMyrGfdX/TiY/MKBGqGZLAw/8WFAWoxBpNMgr2WVzYegC2MZcGYNdgne
bhBw5t0Vci4t8oswRsV2
=YlCt
-----END PGP SIGNATURE-----

what i want to do is create sub-dir. in the www dir. for websites i will be creating, but i can only create sub_dir’s in www when logged into ‘root’

Become su with

su -

change to the dir where you want to create the sub-dir

cd /<dir>

Make a new dir

mkdir <dir_name>

ok i will try that, i may have wrote cd www rather than cd /www

ok so got into www dir, but everytime i try to make a directory i get " mkdir / test_4
mkdir: cannot create directory `/’: File exists"

any help?

Like this, use the mouse to copy and paste or Ctrl+SHIFT+v

mkdir test_4

sorry no /

When you are whre you want to create a new directory, you say

mkdir newdir

It would not be bad when you first try to understand what people advise you by checking the man page that goes with a command. When somebody suggests you to use a command it is not wise to just execute without checking and understanding because:
. people may lure you into doinmg stupid things (not very likely here on these forums, but you never know);
. people may make mistakes/typos in their hurry to help you;
. people show you an example to give you a hint in what direction a solution might be found;
. more of these …
But in the end YOU are responsible for every character you type in your system. Especialy when you are root.

SDB:Login as root - openSUSE

correction i cant get into the www dir, the other folder i have made appear in a different place, just in the Root folder?
i have tried ‘cd srv or cd / srv’ but they didnt appear in the appropriate pllace??

It is

cd /srv/www

Mind the spaces!. And be carefull. Again, first read man cd to understand how the syntax is and what it does. You should also understand the concept of “working directory”. And of absolute and relative directory pathes.

It seems that you are spresding havoc throughout your system. When you do not even know exactly where you are creating things, you may destroy important files.

Yes, mind the spaces and learn about absolute and relative pathnames. Since you typed mkdir / test_4, you were trying to create two directories, /, which always exists, and test_4. Hence the error message.

thats great i will try what you said.
i hope that work.

ok great i get it now :slight_smile:
im just a novice at this.
so where i can see in loalhost “it works” how can i see other docs, i should imagine that i need to place my own html doc under the htdocs, no?

On Sat February 5 2011 02:36 pm, caf4926 wrote:

>
> Become su with
>
> Code:
> --------------------
> su -
> --------------------
>
>
> change to the dir where you want to create the sub-dir
>
> Code:
> --------------------
> cd /<dir>
> --------------------
>
>
> Make a new dir
>
> Code:
> --------------------
> mkdir /<dir_name>
> --------------------
>
>
nrickert;

In addition to su, sudo, kdesu, gnomesu. If you are using KDE, then
“File Manager-Super User Mode” allows you to do file manipulation as root
using the GUI. Much as you would as a user.


P. V.
“We’re all in this together, I’m pulling for you.” Red Green

Thanks. (The silly forum software thinks my answer it too short when I just say “thanks”).

i cant find ‘file manager super user mode’ on mine where do i go for that , going to have a look now.

ah huh… i found it silly me :slight_smile: