Finally solved the problem, thanks for everyone helping!!
I'll post contents of my /etc/sudoers file, just to show small tweaks i did,
To open /etc/sudoers file,
sudo su
then,
root@abhilash-G62:/home/abhilash# export EDITOR=gedit; visudo
Code:
Defaults env_reset
# Host alias specification
# User alias specification
User_Alias BINADMIN = test
# Cmnd alias specification
Cmnd_Alias SU = /bin/hostname, /etc/apache2, /usr/bin/apt-get
# User privilege specification
root ALL=(ALL) ALL
BINADMIN ALL = SU
Then i did a check with my other user called test........
Code:
abhilash@abhilash-G62:~$ su test
Password:
test@abhilash-G62:/home/abhilash$ sudo apt-get install vim
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
vim-runtime
Suggested packages:
ctags vim-doc vim-scripts
The following NEW packages will be installed:
vim vim-runtime
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
Need to get 6,563kB of archives.
After this operation, 27.1MB of additional disk space will be used.
Do you want to continue [Y/n]?
But see the following commands,
Code:
test@abhilash-G62:/home/abhilash/Documents$ ls -l
total 4
-rw------- 1 abhilash abhilash 27 2010-11-19 07:22 softwares_info
test@abhilash-G62:/home/abhilash/Documents$ cat softwares_info
cat: softwares_info: Permission denied
test@abhilash-G62:/home/abhilash/Documents$ sudo cat softwares_info
Sorry, user test is not allowed to execute '/bin/cat softwares_info' as root on abhilash-G62.
test@abhilash-G62:/home/abhilash/Documents$
Ubuntu is so flexible when it comes to a work machine!! ubuntu rocks
Bookmarks