hey guys, I need help with yum install system-config-kickstart.
Ive try running this in terminal with root and user. nothing seems to work.
I got a message:
Loaded plugins: presto, refresh-packagekit
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora.
Please verify its path and try again.
Guys I'm new to Linux. What should I do?
hi all
I am learning systemd and how to add new services as part of the LFS201 course and I have a question about the services:
Code:
Lab 4.2: Adding a New Startup Service with systemd
For example a very minimal file named
/etc/systemd/system/fake2.service:
[Unit]
Description=fake2
After=network.target
[Service]
ExecStart=/bin/echo I am starting the fake2 service
ExecStop=/bin/echo I am stopping the fake2 service
[Install]
WantedBy=multi-user.target
Code:
root@ubuntu:/etc/systemd/system# systemctl start fake.service
root@ubuntu:/etc/systemd/system# systemctl status fake.service
fake.service - fake
Loaded: loaded (/etc/systemd/system/fake.service; disabled; vendor preset: enabled)
Active: inactive (dead)
May 16 11:41:05 ubuntu systemd[1]: Started fake.
May 16 11:41:05 ubuntu systemd[1]: Starting fake...
May 16 11:41:05 ubuntu echo[1798]: I am starting the fake2 service
May 16 11:41:05 ubuntu echo[1800]: I am stopping the fake2 service
root@ubuntu:/etc/systemd/system# ps aux | grep fake*
root 1809 0.0 0.0 13688 2272 pts/8 S+ 11:41 0:00 grep --color=auto fake.service
root@ubuntu:/etc/systemd/system#
as you can see the fake2 service is really only two lines. And when I grep for the service via ps I can't fine it. I guess it is because it has finished running. I am wondering how can I change it so that I can keep it running?
thanks
Thanks for any help
sudo apt-get remove dropbox give me this
sudo apt-get remove dropbox
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
cliffm@debian:~$ sudo dpkg --configure -a
Setting up nautilus-dropbox (1.4.0-3) ...
Dropbox is the easiest way to share and store your files online. Want to learn more? Head to http://www.dropbox.com/
Downloading Dropbox... 100
the terminal is not released.
How else can I get a clean uninstall of dropbox?
cliffm@debian:~$ sudo apt-get remove dropbox
[sudo] password for cliffm:
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
cliffm@debian:~$ top
top - 10:51:47 up 53 min, 3 users, load average: 1.06, 1.21, 1.25
Tasks: 149 total, 2 running, 147 sleeping, 0 stopped, 0 zombie
%Cpu(s): 46.5 us, 4.2 sy, 0.0 ni, 49.3 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem: 1930056 total, 1431412 used, 498644 free, 41064 buffers
KiB Swap: 3929084 total, 0 used, 3929084 free, 593656 cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4142 root 20 0 115m 73m 4032 R 100.0 3.9 39:44.15 dropbox
644 root 20 0 0 0 0 S 0.3 0.0 0:01.02 usb-storage
4076 cliffm 20 0 376m 17m 10m S 0.3 0.9 0:03.69 gnome-terminal
4145 cliffm 20 0 1654m 478m 47m S 0.3 25.4 4:12.97 firefox
4464 cliffm 20 0 23172 1600 1140 R 0.3 0.1 0:00.04 top
1 root 20 0 10648 800 668 S 0.0 0.0 0:00.67 init
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
3 root 20 0 0 0 0 S 0.0 0.0 0:00.15 ksoftirqd/0
4 root 20 0 0 0 0 S 0.0 0.0 0:00.43 kworker/0:0
6 root rt 0 0 0 0 S 0.0 0.0 0:00.02 migration/0
7 root rt 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
8 root rt 0 0 0 0 S 0.0 0.0 0:00.04 migration/1
9 root 20 0 0 0 0 S 0.0 0.0 0:00.59 kworker/1:0
10 root 20 0 0 0 0 S 0.0 0.0 0:00.28 ksoftirqd/1
12 root rt 0 0 0 0 S 0.0 0.0 0:00.01 watchdog/1
13 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 cpuset
14 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 khelper
cliffm@debian:~$ kill 4142
bash: kill: (4142) - Operation not permitted
cliffm@debian:~$ sudo kill 4142
cliffm@debian:~$ top
top - 10:52:53 up 54 min, 3 users, load average: 0.87, 1.13, 1.22
Tasks: 145 total, 1 running, 144 sleeping, 0 stopped, 0 zombie
%Cpu(s): 1.0 us, 0.3 sy, 0.0 ni, 98.7 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem: 1930056 total, 1356856 used, 573200 free, 41172 buffers
KiB Swap: 3929084 total, 0 used, 3929084 free, 593712 cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3733 cliffm 20 0 947m 100m 41m S 0.7 5.3 0:39.55 gnome-shell
4076 cliffm 20 0 376m 17m 10m S 0.7 0.9 0:04.02 gnome-terminal
4145 cliffm 20 0 1655m 481m 47m S 0.7 25.5 4:13.72 firefox
4468 cliffm 20 0 23172 1596 1144 R 0.7 0.1 0:00.04 top
644 root 20 0 0 0 0 S 0.3 0.0 0:01.04 usb-storage
2842 root 20 0 132m 18m 6368 S 0.3 1.0 0:36.38 Xorg
1 root 20 0 10648 800 668 S 0.0 0.0 0:00.67 init
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
3 root 20 0 0 0 0 S 0.0 0.0 0:00.15 ksoftirqd/0
4 root 20 0 0 0 0 S 0.0 0.0 0:00.44 kworker/0:0
6 root rt 0 0 0 0 S 0.0 0.0 0:00.02 migration/0
7 root rt 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
8 root rt 0 0 0 0 S 0.0 0.0 0:00.04 migration/1
9 root 20 0 0 0 0 S 0.0 0.0 0:00.59 kworker/1:0
10 root 20 0 0 0 0 S 0.0 0.0 0:00.29 ksoftirqd/1
12 root rt 0 0 0 0 S 0.0 0.0 0:00.01 watchdog/1
13 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 cpuset
cliffm@debian:~$
Hello Everyone,
I have a question about how to give sudo privileges to a user that log in via public key without password.
I created a normal user and I added this user to the "visudo" folder with ALL privileges.
when the user is logged in the system via public key and the user wants to become a root, a password is requested but i don't want to type the password.
Also to add the public key to the root it is not possible because i track the user log in in the system and if they log via root i cannot do that.
Thank you in advance.
Dear Friends ,
My date value shows One hour ahead from the present time in BDT . I stay on Asia/Dhaka zone and +6.00 . Please look @ the below output :
------------------------------------------------------------
[root@pbldc-ntpsrv Asia]# cat /etc/sysconfig/clock
# The ZONE parameter is only evaluated by system-config-date.
# The timezone of the system is defined by the contents of /etc/localtime.
ZONE="Asia/Dhaka"
UTC=true
ARC=false
-------------------------------------------------------------
But , My problem is , the below Date command output shows 'BDST' instead of 'BDT' .
------------------------------------
"[root@pbldc-ntpsrv Asia]# date
Sat May 9 16:59:37 BDST 2015
-------------------------------------
But it should be :
---------------------------------
[root@pbldc-ntpsrv Asia]# date
Sat May 9 15:59:37 BDT 2015
---------------------------------
---------------------
[root@pbldc-ntpsrv ~]# date +Z
BDST --Should be BDT
[root@pbldc-ntpsrv ~]# date +%z
+0700 --Should bt +0600
[root@pbldc-ntpsrv ~]#
------------------------------------
How I fix it in redhat lnux 5.5 server .
hi experts
I got a bit of problem with the below situation:
Code:
root@kvm_host1:/mnt/nfs# virt-manager &
[1] 4663
root@kvm_host1:/mnt/nfs# X11 connection rejected because of wrong authentication.
[1]+ Done virt-manager
root@kvm_host1:/mnt/nfs# su test
test@kvm_host1:/mnt/nfs$ virt-manager &
[1] 4679
As you can see, I ssh into my ubuntu host with user test, but during some nfs config I su into root, then try to launch virt-manager GUI via X11. Which obviously fails I guess since root wants to launch X11 session but I established the session as user test.
My question is this: Is there a way to stop this from happening? to allow my root to launch the GUI as well?
Thanks
I am using debian 7.7 stable and when I open the root terminal it asks for the password.
But if I open it again, I get the message: 'Granted permissions without asking for password. The /usr/bin/x-terminal-emulator program was started with the privileges of the root user without the need to ask for a password, due to your system's authentication mechanism setup'.
Oh, really? Because I don't remember setting up any 'authentication mechanism setup'.
How can I change this so the root terminal always asks for the password?
Do I have a trojan already? Because I installed the OS just a few days ago.
Thanks very much.
Hello, this is my first post
First i would like to thank you all for answering other people questions because I've been able to learn from the forum a lot.
I need your help with something.
I have standard output from 'ls -laR /etc' command which looks like this:
Code:
/etc/X11/xorg.conf.d:
total 4
drwxr-xr-x. 2 root root 29 Apr 1 00:46 .
drwxr-xr-x. 5 root root 54 Apr 1 00:43 ..
-rw-r--r--. 1 root root 232 Apr 1 00:46 00-keyboard.conf
/etc/xdg:
total 12
drwxr-xr-x. 4 root root 36 Apr 1 00:43 .
drwxr-xr-x. 87 root root 8192 Apr 12 13:53 ..
drwxr-xr-x. 2 root root 6 Jun 10 2014 autostart
drwxr-xr-x. 2 root root 17 Apr 7 01:25 systemd
by using sed command:
Code:
sed -e '/./!d' -e '/^total/d' -e '/\.$/d' -e 's/:$/\//' list.txt
I have transformed it to the following form:
Code:
/etc/X11/xorg.conf.d/
-rw-r--r--. 1 root root 232 Apr 1 00:46 00-keyboard.conf
/etc/xdg/
drwxr-xr-x. 2 root root 6 Jun 10 2014 autostart
drwxr-xr-x. 2 root root 17 Apr 7 01:25 systemd
and now I would like to achieve absolute paths at the end of each row
Code:
-rw-r--r--. 1 root root 232 Apr 1 00:46 /etc/X11/xorg.conf.d/00-keyboard.conf
drwxr-xr-x. 2 root root 6 Jun 10 2014 /etc/xdg/autostart
drwxr-xr-x. 2 root root 17 Apr 7 01:25 /etc/xdg/systemd
How do I join(merge) filenames with corresponding absolute path to their parent directory?
I know how to extract filenames using awk and get this:
Code:
00-keyboard.conf
autostart
systemd
but I don't know what to do next. Should I use some hitech sed option or go for loop or try with arrays? Help. Heeeelp
when a command is typed(i.e. /path/to/the/program), as a normal user, he should be able to run that command , execute that program as ROOT and log out root after the execution is completed.
Only one user should be able to do it.
Hence, I have created a new user vj and added the following command in visudo:
Code:
vj ALL=(ALL) NOPASSWD: /path/to/the/program
Now user vj will be able to typein the command.
What I need is that the program which is been called must run as if it is run by a root user,and when the program is completely executed, exit the root user.
How do I proceed?
System Info:
I have normal user in CentOS 7 whose name is "mostafa" (the name of the account).
I naturally have another user called root with all privileges. User "mostafa" is put into sudoers file, too.
The OS is installed in VmWare, so the system is all mine.
Problem:
Now I create a file with touch file.sh and put a command in it, but when I want to run it with
Code:
sudo ./file.sh
, an error is shown that the command
Code:
./file.sh
does not exist. But if I
Code:
sudo chmod 777 ./file.sh
then it gets run. My question is that, why should I use
Code:
chmod 777
when I myself have created the file, and I am in sudoers.
Can anyone explain me why shuold I still use
Code:
sudo chmod 777
when the creator of the file is me.