 |
01-08-2007, 10:34 PM
|
#1 (permalink)
|
|
Wise Old Owl
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
|
smart removed sudo!!!! HELP!!!!! HELP!!!! HELP!!!!! HELP!!!!!!!
__________________
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
|
|
|
|
Advertisements. Register and be a member of the community to get rid of them.
|
|
Advertisement
|
|
01-08-2007, 10:41 PM
|
#2 (permalink)
|
|
Google Bot
Join Date: Aug 2005
Posts: 9,772
|
Re: smart removed sudo!!!! HELP!!!!! HELP!!!! HELP!!!!! HELP!!!!!!!
doesnt even SU work??
|
|
|
02-08-2007, 02:07 AM
|
#3 (permalink)
|
|
left this forum longback
Join Date: Sep 2005
Location: -
Posts: 7,536
|
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
|
|
|
02-08-2007, 11:34 AM
|
#4 (permalink)
|
|
18 Till I Die............
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
|
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.
|
|
|
02-08-2007, 09:46 PM
|
#5 (permalink)
|
|
Wise Old Owl
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
|
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
|
|
|
02-08-2007, 10:07 PM
|
#6 (permalink)
|
|
left this forum longback
Join Date: Sep 2005
Location: -
Posts: 7,536
|
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
|
|
|
05-08-2007, 09:58 PM
|
#7 (permalink)
|
|
Wise Old Owl
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
|
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
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|