Posts Tagged ‘Linux’

How To: Sudo without password

Thursday, November 26th, 2009

You feel bored of being asked the same question every time when  sudo asking for the password, as you know you can’t log-in as a root in Ubuntu, so sudo is used almost all the time, well to configure sudo not to ask for a password there are two ways the easy one is to run visudo, this command is to edit the list of sudoers list (sudo users).

The harder way to do it is to edit the file /etc/sudoers

nano /etc/sudoers

Add the following to the end of the file:

username ALL=(ALL) NOPASSWD: ALL

Note:  It should be the last line in the file, username is your Ubuntu username.

It will work on almost any Linux ditribution

VN:F [1.8.3_1051]
Rating: 5.0/5 (2 votes cast)
VN:F [1.8.3_1051]
Rating: 0 (from 0 votes)

Post to Twitter Post to Delicious Post to Facebook

How to disable IPv6 in Ubuntu

Wednesday, August 20th, 2008
To disable IPv6 in Ubuntu follow the steps:

1- sudo gedit /etc/modprobe.d/aliases
2- Search the following line: alias net-pf-10 ipv6
3- Modify it to be alias net-pf-10 off ipv6
4- Save
5- Restart networking or reboot

note: restart networking [sudo /etc/init.d/networking restart]

VN:F [1.8.3_1051]
Rating: 0.0/5 (0 votes cast)
VN:F [1.8.3_1051]
Rating: 0 (from 0 votes)

Post to Twitter Post to Delicious Post to Facebook

Linux join windows domain

Tuesday, July 29th, 2008

Install the following packages with the Synaptic Package Manager.

Samba (version 3):

o samba

o samba-common (installed by default)

o smbclient (installed by default)

o winbind

Kerberos:

o krb5-config

o krb5-user

and any packages that might be needed to meet dependencies.

Edit /etc/samba/smb.conf

—————————————–
[global]
security = ADS
realm = URCOMPANY.LOCAL
workgroup = urcompany
password server = saturn.urcompany.local
wins support = no
wins server = 10.0.10.230
invalid users = root
# Winbind settings
idmap uid = 10000-20000
idmap gid = 10000-20000
# For testing
debuglevel = 2

# A shared folder for testing purposes
[SharedFolder]
path = /home/hani/Shared_Folder
available = yes
public = yes
writable = yes
force create mode = 0666
force directory mode = 0777
——————————————
PS: make sure the path = /home/hani/Shared_Folder exist and writable, or chmod 0777 this path

Edit /etc/krb5.conf

——————————————
[libdefaults]
default_realm = URCOMPANY.LOCAL
krb4_config = /etc/krb.conf
krb4_realms = /etc/krb.realms
kdc_timesync = 1
ccache_type = 4
forwardable = true
proxiable = true
# The following libdefaults parameters are only for Heimdal Kerberos.
v4_instance_resolve = false
v4_name_convert = {
host = {
rcmd = host
ftp = ftp
}
plain = {
something = something-else
}
}
[realms]
URCOMPANY.LOCAL = {
kdc = saturn.urcompany.local
admin_server = saturn.urcompany.local
}
[domain_realm]
.urcompany.local = SATURN.URCOMPANY.LOCAL
urcompany.local = SATURN.URCOMPANY.LOCAL
[login]
krb4_convert = true
krb4_get_tickets = true
———————————————-

Edit /etc/nsswitch.conf

———————————————-
passwd: compat winbind
group: compat winbind
———————————————-

Restart services:

/etc/init.d/samba restart
/etc/init.d/winbind restart

———————————————-

Join the domain:

net ads join -U administrator

———————————————-

Ref.: http://us1.samba.org/samba/docs/man/Samba-HOWTO-Collection/domain-member.html

VN:F [1.8.3_1051]
Rating: 0.0/5 (0 votes cast)
VN:F [1.8.3_1051]
Rating: 0 (from 0 votes)

Post to Twitter Post to Delicious Post to Facebook

Get Adobe Flash playerPlugin by wpburn.com wordpress themes