![]() |
Re: root password
Quote:
If you are, then you will in trouble soon. Suggestion: forget about everything said on this thread and just use "root" or "sudo gainroot". |
Re: root password
Quote:
the only extra thing done here is i set the password for root i set the password for user. and executed this command as suggested: chmod u+s /bin/su pls let me know what sort of problems i may face? |
Re: root password
Quote:
Code:
N900:~$ ls -l /bin/su To clean up the mess run this: Code:
su - After this change You won't be able to use 'su -' anymore. |
Re: root password
Quote:
i executed as suggested by you : su - chmod u-s /bin/su Now i will try doing ssh which i was suppose to do yesterday. i will check and let you know. Thanks for being patient with my queries and helping me out. :) |
Re: root password
Quote:
To fix this you need to edit your /etc/sudoers file, it is dangerous to edit this file manually because if you don't do it properly sudo will complain and stop working, instead it is advisable to edit this with the command visudo (which will verify any changes you make for correctness before saving the new file), unfortunately visudo defaults to using the "vi" editor which isn't the easiest for a noob (but I like it). For the fix: - Become root using the command "root" - Run "visudo" - Switch vi to insert mode by pressing "i" - Add either "user ALL=(ALL) /bin/su" to enable that specific command with sudo or "user ALL=(ALL) ALL" to enable all commands with sudo, and add it to the top of the file. - Switch vi back to command mode by pressing "Esc" - Save and quit vi by typing ":wq" |
Re: root password
can u let me know how to make the directories, files & scripts appear in different color. coz its all showing in ame color.
is there any way to fix it? |
Re: root password
please tell me how to set password for root or user.I mean to say if i type sudogainroot it should ask me the password i set.I saw it on UBUNTU but unable to do so on N900.
|
Re: root password
Quote:
Like this: Code:
echo "user ALL=(ALL) /bin/su" > /etc/sudoers.d/custom-user.sudoers Code:
echo "user ALL=(ALL) ALL" > /etc/sudoers.d/custom-user.sudoers Code:
echo "user ALL= NOPASSWD: ALL" > /etc/sudoers.d/custom-user.sudoers |
Re: root password
Quote:
Code:
root Code:
passwd user Code:
passwd root |
Re: root password
Here's a guide for getting "Ubuntu-like sudo behaviour":
Create the new sudo rule: Code:
root Code:
passwd user Code:
apt-get remove rootsh To become root now type (enter Your 'user' password): Code:
sudo su - Or if You just want to run a single command as root type (enter Your 'user' password): Code:
sudo <command> |
All times are GMT. The time now is 11:38. |
vBulletin® Version 3.8.8