System Shutdown

how to shutdown linux system as regular user using command line?


Similar Content



Script Help To Shutdown And Start

Dear Friends,

I am new to scripting. I want a help on script to schedule the shutdown and start up . I am using SUSE Linux system. Can some one guide me please

every night shutdown at 7pm & start it at 7am the next day during the weekdays. On the weekends, the server only needs to restart at 7am on Mondays.

Looking forward for help

Thank you

Regards

pearl

Shutdown After Authentication?

Hi,
This may be silly but (paranoid as I am) I do find this strange, my laptop (Xubuntu) had an update earlier, and as I wanted to shutdown, the system wanted an authentication, I hit cancel and the system logged me out, I logged back in and did not have to authenticate anymore to shutdown...glitch or..."trouble"?
Thanks
Thor
PS - I ran RKhunter and it found nothing...

Kali Linux 1.1.0 Debian Stuck At Shutting Down.

Hi,
This has never happened before. My system has been stuck while shutting down for almost 6 hours now. After clicking the shutdown button, the top bar and bottom bar on the screen disappeared and now all i can see is my wallpaper, the computer icon and my pointer, cant move anything. What can I do to avoid doing a hard shutdown?

Does Shutdown Command Broadcast Warning To Samba Users?

If I do a
shutdown -r 03:15 &
will this only broadcast the shutdown warning messages to people logged into the server directly, or will this also warn users who are connected to samba shares on this server?

Useradd Command Why 1000:1000: Group?

useradd -s /bin/bash -d /home/jaydul -m jaydul
[root@tuhin /]# cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
operator:x:11:0perator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
dbus:x:81:81:System message bus:/:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
jaydul:x:1000:1000::/home/jaydul:/bin/bash
[root@tuhin /]# cat /etc/redhat-release
CentOS Linux release 7.0.1406 (Core)

jaydul:x:1000:1000::/home/jaydul:/bin/bash

Why 1000:1000: Group? it will be by default will be 500:500?
I was any mistake?
jaydul:x:500:500::/home/jaydul:/bin/bash

How To Shutdown X Server?

I am trying to upgrade/install Nvidia drivers. Instructions say that I need to shutdown x server to do so. How in the world do I do that? I can't seem to find any help for that on the net anywhere.

How To Change "-bash-4.1$ "to Regular User Mood User User@

I am new with linux system somehow my regular user mode changed and its became "-bash-4.1$ " also "how to switch root to regular user"? Thanks advance.

Mounting Of Drives In Ubuntu. Please Help. Win 8.1 And Ubuntu 14.04 Dual Boot

i have windows 8.1 and ubuntu 14.04 ....now wen i try to access a drive of windows in ubuntu it says failed to mount.
then i used "sudo ntfsfix /dev/sda4" for mounting the drives ......it worked for all drives except the E drive (not the system drive).
it gives error windows is hibernated , shutdown windows.
I shutdown my windows properly but still that particular drive refuses to mount..
any solns?

How To Do A Remote Shutdown

Is it possible to do a remote shutdown on a windows pc from a suse server and if so how?

?? How To Auto Mount Logical Volume Before Transmission-daemon Starts At Start Up

I have been using an old computer to download my torrents and this has been my usual routine:

1. Press the power button.
2. Connect to the computer through Putty
3. Log in
4. Gain su privileges

Startup Commands:
Code:
/etc/init.d/transmission-daemon stop
apt-get update
mount -t ext4 /dev/vgTransmission/lvTransmission /mnt/transmissionVault
/etc/init.d/transmission-daemon start

Shutdown Commands:
Code:
/etc/init.d/transmission-daemon stop
umount /dev/vgTransmission/lvTransmission
shutdown -h now

I was wondering if there is a way to configure a computer to automatically mount a logical volume “before” the transmission-daemon starts at boot up (note my first Startup Command).

I think the instructions here are related to what I want to do, but I want to get some advice before I attempt to do anything dangerous:
http://tille.garrels.be/training/tld...#sect_04_02_04


My perfect scenario would be:

Startup Routine:
1. Send WakeOnLan magic packet to computer to turn it on.
2. Computer boots up, mounts the transmissionVault logical volume
3. Wait 10 seconds to ensure that the logical volume has finished mounting
4. Start transmission-daemon

Shutdown Routine:
Send WakeOnLan magic packet to turn off computer, i.e.: Execute “shutdown -h now”
The shutdown command should include:
1. Stop transmission-daemon
2. Wait 10 seconds to ensure that transmission-daemon has finished shutting down
3. Umount transmissionVault logical volume




Recently the Ethernet port of my transmission box has stopped working, so I went ahead and swapped the motherboard with another old motherboard, added a few hard drives, installed a fresh copy of Debian, and re-created the LVM logical volume for transmissionVault. I pretty much have a fairly stock system running at the moment.

Running a headless 3.2.0-4-amd64