Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 01-08-2007, 10:34 PM   #1 (permalink)
Wise Old Owl
 
The Unknown's Avatar
 
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
Unhappy smart removed sudo!!!! HELP!!!!! HELP!!!! HELP!!!!! HELP!!!!!!!


This nonsense smart removed sudo while i was removing vim. I am not able to use apt, yum, smart now. What do i do? Even rpm doesn't work to install sudo. I tried compiling the source using make, it also gives error. Now i shud shutdown my pc or not???? Please answer as fast as possible!!!!!
__________________
KDE on ArchLinux
PHP, MySQL, PostgreSQL, Linux, Apache; Message me to hire (freelancing only)
Explore Technology @ http://www.itech7.com
Cheap and Reliable VPS Hosting @ http://j.mp/arHk5e
The Unknown is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 01-08-2007, 10:41 PM   #2 (permalink)
Google Bot
 
Pathik's Avatar
 
Join Date: Aug 2005
Posts: 9,772
Default Re: smart removed sudo!!!! HELP!!!!! HELP!!!! HELP!!!!! HELP!!!!!!!

doesnt even SU work??
Pathik is offline  
Old 02-08-2007, 02:07 AM   #3 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
Default Re: smart removed sudo!!!! HELP!!!!! HELP!!!! HELP!!!!! HELP!!!!!!!

go to the rpm cache directory(somewhere /var/cache/archives contains ur .rpms) as "su"(i hope it works!) in terminal.there u manually install vim,sudo etc.each time there will be error saying some missing dependency,u have to manually resolve to get the system back.sorry rpm way is tough
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
praka123 is offline  
Old 02-08-2007, 11:34 AM   #4 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: smart removed sudo!!!! HELP!!!!! HELP!!!! HELP!!!!! HELP!!!!!!!

And don't reinstall if that doesn't work. It can be easily solved by booting into single user mode and installing sudo then editing /etc/sudoers file using visudo, if needed.
mehulved is offline  
Old 02-08-2007, 09:46 PM   #5 (permalink)
Wise Old Owl
 
The Unknown's Avatar
 
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
Default Re: smart removed sudo!!!! HELP!!!!! HELP!!!! HELP!!!!! HELP!!!!!!!

su works.

@praka, there is no dir like archives in ./var/cache.

For now, i fixed it by chmodding /var/cache and /yum_cache (my yum cache) to 777. Does this pose some security threat?
__________________
KDE on ArchLinux
PHP, MySQL, PostgreSQL, Linux, Apache; Message me to hire (freelancing only)
Explore Technology @ http://www.itech7.com
Cheap and Reliable VPS Hosting @ http://j.mp/arHk5e
The Unknown is offline  
Old 02-08-2007, 10:07 PM   #6 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
Default Re: smart removed sudo!!!! HELP!!!!! HELP!!!! HELP!!!!! HELP!!!!!!!

yeah its for ubuntu/debian deb cache dir.for rpms,i dont exactly know where yum stores.
^only /tmp remains 777,all other dirs in ur root "/" shud be 755 .just open a terminal and try "cd /" and "ll" or "ls -l" will give u the position.
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
praka123 is offline  
Old 05-08-2007, 09:58 PM   #7 (permalink)
Wise Old Owl
 
The Unknown's Avatar
 
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
Default Re: smart removed sudo!!!! HELP!!!!! HELP!!!! HELP!!!!! HELP!!!!!!!

Quote:
Originally Posted by praka123
yeah its for ubuntu/debian deb cache dir.for rpms,i dont exactly know where yum stores.
^only /tmp remains 777,all other dirs in ur root "/" shud be 755 .just open a terminal and try "cd /" and "ll" or "ls -l" will give u the position.
The output of ll in / is:

Code:
drwxr-xr-x   2 root          root        4096 Aug  4 21:50 bin
drwxr-xr-x   4 root          root        1024 Jul 22 08:48 boot
drwxr-xr-x  11 root          root        4280 Aug  5 17:52 dev
dr-xr-xr-x   1 root          root        2048 Sep 27  2001 dvd
drwxr-xr-x 103 root          root       12288 Aug  5 21:08 etc
drwxr-xr-x   5 root          root        4096 Aug  5 15:18 home
drwxr-xr-x  13 root          root        4096 Aug  5 21:05 lib
drwx------   2 root          root       16384 Jul 19 04:38 lost+found
drwxr-xr-x   2 root          root        4096 Aug  5 17:52 media
drwxr-xr-x   2 root          root           0 Aug  5 17:51 misc
drwxr-xr-x   2 root          root        4096 Oct 11  2006 mnt
drwxr-xr-x   2 root          root           0 Aug  5 17:51 net
drwxr-xr-x   2 root          root        4096 Oct 11  2006 opt
dr-xr-xr-x 154 root          root           0 Aug  5  2007 proc
drwxr-x---  36 root          root        4096 Aug  5 21:36 root
drwxr-xr-x   2 root          root       12288 Aug  4 21:50 sbin
drwxr-xr-x   4 root          root           0 Aug  5  2007 selinux
drwxr-xr-x   2 root          root        4096 Oct 11  2006 srv
drwxr-xr-x  11 root          root           0 Aug  5  2007 sys
drwxrwxrwx  24 root          root        4096 Aug  5 21:45 tmp
drwxr-xr-x  14 root          root        4096 Jul 19 04:46 usr
drwxr-xr-x  24 root          root        4096 Jul 31 22:27 var
drwxrwxrwx   7 root          root        4096 Aug  1 20:04 yum_cache
I didn't change the perms for any of them except yum_cache. Also after chmodding those dirs, yum works.

EDIT: I changed the perms of those dirs to 755. sudo is absent. yum works. will post if any problem occurs.
__________________
KDE on ArchLinux
PHP, MySQL, PostgreSQL, Linux, Apache; Message me to hire (freelancing only)
Explore Technology @ http://www.itech7.com
Cheap and Reliable VPS Hosting @ http://j.mp/arHk5e
The Unknown is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enabling 'SUDO' anantkhaitan Open Source 2 17-04-2007 04:42 PM
sudo -s ravix Open Source 7 02-07-2006 12:40 AM
How can the badsectors get removed from harddisk navneeth_snr QnA (read only) 14 26-10-2004 10:46 PM

 
Latest Threads
- by Sujeet
- by soumya
- by clmlbx
- by Charan

Advertisement




All times are GMT +5.5. The time now is 12:52 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2