/etc/sudoers yang terhapus...

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
4R15
Posts: 8
Joined: 19 Apr 2011, 12:37
Location: Jakarta

/etc/sudoers yang terhapus...

Postby 4R15 » 19 Apr 2011, 12:45

selamat siang mas, aku newbie ubuntu , barusan ga sengaja menghapus /etc/sudoers pada ubuntu ku,gimana caranya ya untuk bisa login lagi sebagai root / sudoersnya balik lagi kesistem ubuntu...,agar saya dapat login lagi sebagai root...
mohon pencerahan nya....
salam
4r15 Pram
User avatar
thrvers
Posts: 4458
Joined: 01 Jan 2010, 13:28
Location: Jombang, Indonesia
Contact:

Re: /etc/sudoers yang terhapus...

Postby thrvers » 19 Apr 2011, 13:43

'
diakali saja :D
boot lewat liveCD/USB terus copy aj [root-mode]

CMIIW
User avatar
offline
Posts: 2672
Joined: 17 Feb 2010, 21:03
Location: Kebumen

Re: /etc/sudoers yang terhapus...

Postby offline » 19 Apr 2011, 14:19

reinstall sudo package atau buat sendiri konfignya dengan gedit.
konfig lucid saya kek gini

# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#

Defaults env_reset

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root ALL=(ALL) ALL

# Allow members of group sudo to execute any command
# (Note that later entries override this, so you might need to move
# it further down)
%sudo ALL=(ALL) ALL
#
#includedir /etc/sudoers.d
User avatar
Ganda
Posts: 7
Joined: 13 May 2010, 02:26
Location: surabaya,indonesia

Re: /etc/sudoers yang terhapus...

Postby Ganda » 19 Apr 2011, 15:25

misi,,cara konfigurasinya gimana gan?
apa sih artinya?
User avatar
4R15
Posts: 8
Joined: 19 Apr 2011, 12:37
Location: Jakarta

Re: /etc/sudoers yang terhapus...

Postby 4R15 » 19 Apr 2011, 16:08

itu dia gan mengcopy ke file sistem ubuntunya access denaid gan..., punya source livecd ubuntu 9.04 server gan...!

Thankyu
User avatar
4R15
Posts: 8
Joined: 19 Apr 2011, 12:37
Location: Jakarta

Re: /etc/sudoers yang terhapus...

Postby 4R15 » 19 Apr 2011, 17:15

gimana cara nya gan...?
User avatar
Hellnest
Posts: 198
Joined: 13 Oct 2010, 19:15
Contact:

Re: /etc/sudoers yang terhapus...

Postby Hellnest » 19 Apr 2011, 17:33

Untuk copy harus pakai akses root, mounting dulu partisi "ubuntu" kamu

$ sudo mkdir /mnt/ubuntu
$ sudo mount /dev/sdx /mnt/ubuntu #ganti x sama partisi ubuntu km
$ sudo cp /etc/sudoers /mnt/ubuntu/etc/
$ sudo umount /mnt/ubuntu

reboot
User avatar
4R15
Posts: 8
Joined: 19 Apr 2011, 12:37
Location: Jakarta

Re: /etc/sudoers yang terhapus...

Postby 4R15 » 20 Apr 2011, 08:30

sorry mas,maksudnya ini mengcopy /etc/sudoers dari cd ubuntunya ya...,
User avatar
4R15
Posts: 8
Joined: 19 Apr 2011, 12:37
Location: Jakarta

Re: /etc/sudoers yang terhapus...

Postby 4R15 » 20 Apr 2011, 14:08

masih pusing neh belum bisa...,ada yang bisa kasih pencerahan lagi gan....,atau install ulang aja ubuntunya ya...????
User avatar
offline
Posts: 2672
Joined: 17 Feb 2010, 21:03
Location: Kebumen

Re: /etc/sudoers yang terhapus...

Postby offline » 20 Apr 2011, 14:30

sudah coba fsck?
User avatar
blackshirt
Posts: 2336
Joined: 02 Jan 2010, 17:00
Location: Solo dan Kebumen
Contact:

Re: /etc/sudoers yang terhapus...

Postby blackshirt » 20 Apr 2011, 15:16

kan sampelnya sudah ada... coba liat di /usr/share/doc/sudo, ada gak samplenya
User avatar
4R15
Posts: 8
Joined: 19 Apr 2011, 12:37
Location: Jakarta

Re: /etc/sudoers yang terhapus...

Postby 4R15 » 20 Apr 2011, 15:40

alhamdulillah terjawab disi gan...????
http://www.botskool.com/geeks/how-recov ... 4-password

thankyu all...
User avatar
offline
Posts: 2672
Joined: 17 Feb 2010, 21:03
Location: Kebumen

Re: /etc/sudoers yang terhapus...

Postby offline » 20 Apr 2011, 15:51

alhamdulillah terjawab disi gan...????
http://www.botskool.com/geeks/how-recov ... 4-password

thankyu all...


kalo gini judulnya harusnya "cara recovery password" , bukan "/etc/password yg terhapus"
btw sip dah fix
User avatar
4R15
Posts: 8
Joined: 19 Apr 2011, 12:37
Location: Jakarta

Re: /etc/sudoers yang terhapus...

Postby 4R15 » 20 Apr 2011, 16:09

iya gan secara kalo /etc/sudoers terhapus...,user tidak dapat login sebagai super user (root) gan..., tinggal copy /etc/sudoers yang ada pada server lain..,lalu di copykan gan ke /etc/ sudoers yag terhapus.......rebooot...selesai gan...,user2 bias kembali login sebagai root....,

Txs all,,,

Who is online

Users browsing this forum: No registered users and 7 guests