|
I've heard often that it is better to su to root rather than log in directly as the root user (and of course people also say that it's even better to use sudo). I've never really understood why one is better than the other(s), insight?
Started by thepocketwade on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at serverfault):
Especially those which connect to the....
By doing so you are reducing scope for dangerous use .
Most everyday tasks don't require a root shell to root when you need to perform special tasks.
The inference is to only su or sudo when required .
|
|
Hello all,
I'm trying to do the safe thing, and have a program that needs to runs as root to drop its privileges when it doesn't need them. This works well if I chmod my binary with the SUID bit, and make it belong to root, as now I have UID = some user...
Started by Florian on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Seteuid(some random uid) to drop privileges, seteuid(0) to get them back, when running as root(); seteuid(0); p(); return 0; } $ cc -Wall t12.c $ sudo chown root a.out && sudo chmod 4555 a.out $ sudo.
|
|
I want to redirect only my root to another url, but maintain all the /sub/directories where they belong (and redirect)
example:
mysite.com/1 redirects to somewhere mysite.com/admin opens a page
i want mysite.com/ to redirect to mysecondsite.com and only...
Started by jardel on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
On RewriteRule ^$ http://www.example.com/ [R=301,L]
This only matches the domain's root with nothing after.
|
Ask your Facebook Friends
|
Hi
I have a directory structure like this:-
/root/directory/subdirectory1 /root/directory/subdirectory2 /root/directory/subdirectory3 /root/directory/subdirectory4
I need all subdirectories to move up 1 level so they are off the root, can someone please...
Answer Snippets (Read the full thread at serverfault):
Cd /root/directory/ mv ./subdirectory* ../
mv /root/directory/* /root/
Two good references you.
|
|
I'm trying to mount a samba share using smbfs as root (on ubuntu-server), but every time I mount it it's mounted as root:dialout
Here is the fstab entry (line breaks added for presentation)
//192.168.1.68/mount_name /root/mount_point smbfs ¬ auto,username...
Started by DEfusion on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
//192.168.1.68/mount_name /root/mount_point smbfs ¬ auto,username=user,password=pass,uid=root, gid=root ,umask=00....
Also, use the cifs client rather than smbfs, as that is more modern .
Add the gid=root option to the options.
|
|
If I run a script from /home/<user>/<dir>/script.sh , as root, the cron works pretty well. But If I run the script from /root/<dir>/script.sh (as root, again), the cron does not seem to work.
Started by Mohit Ranka on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
If you are putting this in /root, are you running this in root's crontab?
It could be because you're/ but not from /root, because /root is not in /home/root nor would it look like a users homefolder - especially when....
|
|
Posted 28 December 2010 - 12:07 PM
Permanent Root Solution
This has been proven to work!
On the MID816 forum, quantumfusion posted a solution for permanent root access that he said worked on his device. THANKS!
Here is the link to the files you need: ...
Started by MrTasselhof on
, 20 posts
by 5 people.
Answer Snippets (Read the full thread at slatedroid):
What i can ....
What is this for?? ...
What i can do with this..
What is this for?? ...
Posted 28 December 2010 - 12:52 PM
this root & un-root access...
|
|
I need to get all dlls in my application root directory. What is the best way to do that?
string root = Application.StartupPath;
or
string root = new FileInfo(Assembly.GetExecutingAssembly().Location).FullName;
and after that
Directory.GetFiles(root, ...
Started by abatishchev on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
In it MyApp.MyClass, then you would do this;
string root = string.Empty; Assembly ass = Assembly.GetAssembly( typeof( MyApp.MyClass ) ); if ( ass != null ) { root = ass.Location; }.
|
|
A very common setback in growing is root rot. Luckily, this is very easy to fix/prevent, and can be done so for nearly free, or very inexpensively. This is something you can fix on your own without any fancy products that your local hydro store will try...
Started by Original Past on
, 12 posts
by 6 people.
Answer Snippets (Read the full thread at grasscity):
I get stem rot on my clones ....
There're no more expensive than a regular plastic pot and it saves me out .
I get stem rot on my clones (root riot cubes, dry have a problem with root rot.
Before using it, instead of just letting it sit out .
|
|
Sooo.... T-mobile mytouch 4G (HTC Glacier) user here.
I've been debating on rooting my phone for about...a year now. Every couple months i read up on how to do it, and just never seem to. I live on my phone and the thought of screwing it up kinda scares...
Started by NateS on
, 20 posts
by 12 people.
Answer Snippets (Read the full thread at talkbass):
I have Neutrino on my from your carrier? Sometimes that will set you ... .
-Mike Highly recommended.
Check out the XDA forums, specifically root without loading a ROM set to disable OTA's.
Has greatly increased because of the root/overclock.
|