[SOLVED] sudo trouble
Hi,
newly installed sudo isn't working properly:
$ sudo shutdown -r now
[sudo] password for me:
Sorry, user me is not allowed to execute '/sbin/shutdown -r now' as root on mybox.
$ $
Curiously, sudo honors pacman, for instance:
$ sudo pacman -Syu
as specified in visudo:
root ALL=(ALL) ALL
%wheel ALL=(ALL) ALL
%users ALL=NOPASSWD: /usr/bin/pacman
%users ALL=NOPASSWD: /usr/bin/pacman-color
%users ALL=NOPASSWD: /usr/bin/pacdiffviewer
Any ideas?
Last edited by Llama (2012-10-19 13:26:47)
Thanks, WorMzy!
# gpasswd -a me wheel
is the soluiton.
By the way, the groups part as a step has vanished from the Beginner's Guide, which is supposed to be a step-by-step instruction. Perhaps 'be sure to consult' remark would be better than 'for more information'.
Last edited by Llama (2012-10-19 13:25:37)
Similar Messages
-
[SOLVED] Steam troubles. Segfault after login.
Hello. I'm usually pretty good about solving my own problems, but this one has me beat. So, yay, first post.
Recently my nephew brought me his computer for a nuke and pave, and since he doesn't have a legit Windows key and I don't use Windows anymore I decided to install Arch on his machine, since it's what I use and I'm their go-to tech support.
Unfortunately I'm having trouble getting Steam to run correctly on his machine. It will start up, update/verify install, show the login screen, and after authenticating it promptly dies.
Some details:
This is a somewhat fresh install. I provisioned it from within a Vbox VM on my own workstation and then moved the HDD to the actual box.
Full system update was done just today. Problem existed prior and persists after.
Proprietary GPU drivers are not being used.
lspci shows the video adapter to be: 07:00.0 VGA compatible controller: NVIDIA Corporation G71 [GeForce 7900 GS] (rev a1)
I've already removed Steam's bundled libs, as per the wiki.
I've tried steam --reset and rm -rf ~/.steam and removing and reinstalling the steam package. No dice.
The presentation of problems detailed here seemed pretty similar so I installed lib32-dbus but this did not resolve the issue.
I'm not checking remember password. This bug seems to be unrelated
Console output:
Running Steam on arch 64-bit
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(1416617579)
Installing breakpad exception handler for appid(steam)/version(1416617579)
Installing breakpad exception handler for appid(steamwebhelper)/version(20141121162341)
Installing breakpad exception handler for appid(steamwebhelper)/version(1416587021)
Installing breakpad exception handler for appid(steamwebhelper)/version(20141121162341)
Installing breakpad exception handler for appid(steamwebhelper)/version(1416587021)
Installing breakpad exception handler for appid(steamwebhelper)/version(1416587021)
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number
Installing breakpad exception handler for appid(steam)/version(1416617579)
Installing breakpad exception handler for appid(steam)/version(1416617579)
Installing breakpad exception handler for appid(steam)/version(1416617579)
Installing breakpad exception handler for appid(steam)/version(1416617579)
Installing breakpad exception handler for appid(steam)/version(1416617579)
Installing breakpad exception handler for appid(steam)/version(1416617579)
FillInMachineIDInfo took a total of 0 milliseconds
Installing breakpad exception handler for appid(steam)/version(1416617579)
PulseAudio connect failed (used only for Mic Volume Control) with error: Access denied
Installing breakpad exception handler for appid(steam)/version(1416617579)
Generating new string page texture 7: 128x256, total string texture memory is 131.07 KB
Generating new string page texture 8: 48x256, total string texture memory is 180.22 KB
Generating new string page texture 9: 256x256, total string texture memory is 442.37 KB
Generating new string page texture 10: 64x256, total string texture memory is 507.90 KB
Generating new string page texture 11: 8x256, total string texture memory is 516.10 KB
Generating new string page texture 12: 16x256, total string texture memory is 532.48 KB
Generating new string page texture 13: 24x256, total string texture memory is 557.06 KB
Generating new string page texture 14: 32x256, total string texture memory is 589.82 KB
Installing breakpad exception handler for appid(steam)/version(1416617579)
Installing breakpad exception handler for appid(steam)/version(1416617579)
Installing breakpad exception handler for appid(steam)/version(1416617579)
Installing breakpad exception handler for appid(steam)/version(1416617579)
Have a ping of 38 MS which is under threshold of 50 MS, and have been trying for 297 MS - good enough
Installing breakpad exception handler for appid(steam)/version(1416617579)
Installing breakpad exception handler for appid(steam)/version(1416617579)
Installing breakpad exception handler for appid(steam)/version(1416617579)
Adding licenses for the following package(s): 0, 470, 1861, 2835, 7932, 8183, 11072, 11416, 17111, 18343, 27723, 27968, 28233, 28315, 29145, 29470, 32848, 33954, 37125, 39202, 41566, 43104, 43386, 45658
roaming config store loaded successfully - 650 bytes.
migrating temporary roaming config store
Failed to init SteamVR because it isn't installed
ExecCommandLine: ""/home/austin/.local/share/Steam/ubuntu12_32/steam" "
System startup time: 23.43 seconds
Installing breakpad exception handler for appid(steam)/version(1416617579)
(steam:6806): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:6806): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:6806): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:6806): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:6806): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:6806): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:6806): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:6806): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:6806): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:6806): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:6806): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
[1224/194751:ERROR:renderer_main.cc(227)] Running without renderer sandbox
Uploading dump (out-of-process) [proxy '']
/tmp/dumps/assert_20141224194726_1.dmp
Running Steam on arch 64-bit
STEAM_RUNTIME has been set by the user to: /home/austin/.local/share/Steam/ubuntu12_32/steam-runtime
/home/austin/.local/share/Steam/steam.sh: line 729: 6806 Segmentation fault (core dumped) $STEAM_DEBUGGER "$STEAMROOT/$STEAMEXEPATH" "$@"
Requested Force create but SharedObjectMutex already created
Forced create but already created for SharedObjectEvent
Forced create but already created for SharedObjectEvent
Finished uploading minidump (out-of-process): success = yes
response: CrashID=bp-e3676b84-8218-411b-8500-189492141225
I then tried DEBUGGER=gdb steam and besides the identical output above and the expected gdb messages I get
Program received signal SIGSEGV, Segmentation fault.
0xf6d9eab8 in ?? () from /usr/lib32/xorg/modules/dri/nouveau_dri.so
So then I tried native runtime STEAM_RUNTIME=0 steam with the help of the alucryd-multilib repo. The output seems to be identical to the above. Output of DEBUGGER=gdb STEAM_RUNTIME=0 steam available here.
Throwing that into Google yields nothing of interest that I can find.
Perhaps hardware failure? But my nephew played Dust AET for a while and it ran fine.
I'm at a loss.
Last edited by Xaekai (2014-12-29 11:17:11)I'm also in a similar situation, surprised that it took this long for someone to post the problem here (it's been at least a week since this started)...
There's a report here:
https://github.com/ValveSoftware/steam- … -67916730\
I also get a segfault when running steam with STEAM_RUNTIME disabled now.
Here's my command line output: https://gist.github.com/uberscientist/0 … 26de094ec5
With STEAM_RUNTIME libs it runs fine (however TF2 fails to start...)
If I can provide any more useful information let me know. I am running Arch Linux, systemd (so OpenRC probably has nothing to do with it), x86_64.
I'll subscribe to this topic and continue crossing my fingers an update fixes things. -
[SOLVED] sudo doesnt work
Hi guys,
I'm having the strangest issues since my last installation of archlinux. First I could not login into any tty (after entering the username, nothing happened). I could solve that by installing the util-linux package. Now I cannot use sudo.
The user is in the group wheel (which is uncommented in sudoers). I have changed nothing in the sudoers file, here's the content:
## sudoers file.
## This file MUST be edited with the 'visudo' command as root.
## Failure to use 'visudo' may result in syntax or file permission errors
## that prevent sudo from running.
## See the sudoers man page for the details on how to write a sudoers file.
## Host alias specification
## Groups of machines. These may include host names (optionally with wildcards),
## IP addresses, network numbers or netgroups.
# Host_Alias WEBSERVERS = www1, www2, www3
## User alias specification
## Groups of users. These may consist of user names, uids, Unix groups,
## or netgroups.
# User_Alias ADMINS = millert, dowdy, mikef
## Cmnd alias specification
## Groups of commands. Often used to group related commands together.
# Cmnd_Alias PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \
# /usr/bin/pkill, /usr/bin/top
## Defaults specification
## You may wish to keep some of the following environment variables
## when running commands via sudo.
## Locale settings
# Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET"
## Run X applications through sudo; HOME is used to find the
## .Xauthority file. Note that other programs use HOME to find
## configuration files and this may lead to privilege escalation!
# Defaults env_keep += "HOME"
## X11 resource path settings
# Defaults env_keep += "XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH"
## Desktop path settings
# Defaults env_keep += "QTDIR KDEDIR"
## Allow sudo-run commands to inherit the callers' ConsoleKit session
# Defaults env_keep += "XDG_SESSION_COOKIE"
## Uncomment to enable special input methods. Care should be taken as
## this may allow users to subvert the command being run via sudo.
# Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
## Uncomment to enable logging of a command's output, except for
## sudoreplay and reboot. Use sudoreplay to play back logged sessions.
# Defaults log_output
# Defaults!/usr/bin/sudoreplay !log_output
# Defaults!/usr/local/bin/sudoreplay !log_output
# Defaults!/sbin/reboot !log_output
## Runas alias specification
## User privilege specification
root ALL=(ALL) ALL
## Uncomment to allow members of group wheel to execute any command
%wheel ALL=(ALL) ALL
## Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
## Uncomment to allow members of group sudo to execute any command
# %sudo ALL=(ALL) ALL
## Uncomment to allow any user to run sudo if they know the password
## of the user they are running the command as (root by default).
# Defaults targetpw # Ask for the password of the target user
# ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'
## Read drop-in files from /etc/sudoers.d
## (the '#' here does not indicate a comment)
#includedir /etc/sudoers.d
In the auth.log there are following lines which seem to be important:
Jul 12 13:46:18 localhost sudo: PAM _pam_init_handlers: no default config /etc/pam.d/other
Jul 12 13:46:21 localhost sudo: PAM no modules loaded for `sudo' service
Jul 12 13:46:22 localhost sudo: pam_unix(sudo:auth): conversation failed
Jul 12 13:46:22 localhost sudo: pam_unix(sudo:auth): auth could not identify password for [archUser]
Jul 12 13:46:22 localhost sudo: archUser: 1 incorrect password attempt ; TTY=pts/2 ; PWD=/home/archUser; USER=root ; COMMAND=/usr/bin/pacman -Syyuu
So I looked up the content of /etc/pam.d/sudo:
root@arch /etc/pam.d # cat sudo
#%PAM-1.0
auth required pam_unix.so
auth required pam_nologin.so
The files pam_unix.so and pam_nologin.so are both saved in /usr/lib/security.
I noticed that if I enter the password wrong, I need to wait one or two seconds before I can try it again (this behaviour seems to be normal). But when I enter the password correct, there is no waiting time and I can enter the pass again.
I have no idea what to do and hope that anyone can help me to use sudo again.
4 years ago, after installing archlinux the first time, I had not a single error. Everything worked just fine but now I get two errors at once after the installation!
--blackdeagle
Last edited by blackdeagle (2012-07-12 14:05:53)blackdeagle wrote:
65kid wrote:
blackdeagle wrote:Please stay away from my thread! I don't need people like you telling me to search the forums and which parameters I can use and which not!
seriously? it is stated in multiple news, the wiki and in about every third forum thread that you shouldn't use force unless you know exactly what you are doing or you are explicitly told to use it. I don't blame you that you didn't notice this, a lot of people don't (unfortunately). But when people correct you and want to help you are like "whatever, I do what I want! go away!" ???
And what do you think the search function is for?
Please stay away from Arch... geez...
Come on, do you seriously think you are the only one using the search function? Show me some threads with the solution for my issue!
https://bbs.archlinux.org/viewtopic.php?id=143335
https://bbs.archlinux.org/viewtopic.php?id=144079
https://bbs.archlinux.org/viewtopic.php?id=143487
https://bbs.archlinux.org/viewtopic.php?id=142729
https://bbs.archlinux.org/viewtopic.php?id=142720
https://bbs.archlinux.org/viewtopic.php?id=142941
https://bbs.archlinux.org/viewtopic.php?id=144599 -
[SOLVED] sudo and XDG_CONFIG_HOME
I'm not really sure in which section my problem fits, but since I realized I had it creating a new package... Here it is.
I submitted a new package (brogue) to the AUR. The way the code was written makes it necessary to have the executable in the same folder as the png and so files. To work around it I thought of moving all the files to one folder and then create a shell script that would cd to that folder, run the game, and return to the previous path. I could move them to /usr/ or somewhere in $HOME. I chose the second one and here is my problem.
When I check for XDG_CONFIG_HOME in PKGBUILD I get one path and when I do it the same way to run the game I get another one.
if [ -z "$XDG_CONFIG_HOME" ]; then
_config_dir="$pkgdir/$HOME/.config/brogue"
else
_config_dir="$pkgdir/$XDG_CONFIG_HOME/brogue"
fi
if [ -z "$XDG_CONFIG_HOME" ]; then
_config_dir="$HOME/.config/brogue"
else
_config_dir="$XDG_CONFIG_HOME/brogue"
fi
I know this happens because (obviously) I install as root and run it as normal user. One way to solve this is to sudo -u username pacman but it is a crappy way.
What's wrong? Am I looking for XDG_CONFIG_HOME the wrong way in the PKGBUILD? Or should I have sudo using my user as default (don't really think so)?
PS: Since the files are not really config files, sould I dump them on other place? For instance, I realize that I could have solved this moving them to /usr/share/. But the problem would come eventually and I would have to ask you guys just the same....
Last edited by jlcordeiro (2010-10-14 13:36:58)Packages should never touch the user's home directory in any way. Namcap could have warned you about this. You're also missing some dependencies.
Just install the executable and image files in /usr/share/brogue, the .so files in /usr/lib and add a frontend script to /usr/bin.
Note that this is still ugly. Installing the precompiled binaries and libraries should be avoided. Instead, create a separate package for libtcod and have your brogue package depend on it, then properly build brogue from source in your PKGBUILD.
In your frontend script, just cd to /usr/share/brogue and run it. No need to cd back to '-'.
Also, makepkg runs as a normal user, so using an environment variable in the PKGBUILD should yield the user value. -
[SOLVED] sudo -i changes ownership of .Xauthority to root, breaks X
From a normal user's terminal session running in xmonad, I tried to enter a root terminal session with "sudo -i".
I got sent to the virtual console and couldn't switch back to X. An error message told me .Xauthority was not writable. The user's .Xauthority file was now owned by root and not writable.
After removing the root-owned files, I could start X and everything seems normal.
"sudo -s" and "su" work as expected.
Do I have a bad configuration? Do I not understand "sudo -i"?
Edit: Could sudo's "initial login" try to start X as root? I have auto-login configured for the first virtual console. I'll try to switch that off and try again.
SOLVED: The cause was my root user's .bash_profile and .zprofile. I copied my user's .bash_profile and .zprofile over to root and didn't notice that I should comment the following line to automatically start X:
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx
Last edited by Markus00000 (2013-06-13 13:04:31)Change
archimedes ALL = (ALL) NOPASSWD: SHUT, NOPASSWD: PAC
to
archimedes ALL=(ALL) NOPASSWD: SHUT, NOPASSWD: PAC -
[DIS-SOLVED] Sudo hangs after a few uses
I've been searching around for this for some time, but haven't found any enlightenment yet.
Basically, after rebooting I can use sudo a few times (usually 3) successfully. After that, any sudo command just hangs. Interestingly, "sudo -k" still returns normally, but "sudo -v" hangs. It is worth noting that sudo gets as far as prompting me for my password before hanging.
Background - possibly useful:
I've had arch running for a few months now, and this just started happening yesterday, when I left my machine running overnight doing a large dd to an external drive as described here: https://wiki.archlinux.org/index.php/Di … _hard_disk . I woke up, found that the i/o was all finished (I could tell because I was using pv to monitor it), but the command ( which was "sudo dd if=/dev/sda conv=sync,noerror bs=32M | pv -pbert | gzip -c > /run/media/jimbo/Backup2/sda_82513.img.gz") hadn't returned and wasn't responding to SIGINTs. The hanging behavior started here, and I wasn't able to kill the process or unmount my external cleanly. I'm not sure exactly what I did then, but I'm pretty sure I just hard-rebooted my machine, and I've been seeing this behavior ever since.
Any pointers or advice would be greatly appreciated. I'll post any config files you guys are interested in, with PII redacted.
Last edited by jmagnare (2013-08-30 21:05:05)Thanks for the warm welcome! I'm having a blast using arch so far.
So I restored from the dd that I had done, and things are working fine now. I'm not sure what I should do with this thread: should I mark it solved? I didn't actually discover the cause of the problem, so that doesn't seem right.
To answer your questions:
1. I may have had one of the partitions on sda mounted. Is this likely to have caused what I saw?
2. pv, which I just discovered, allows you to see the progress of data through a pipeline. It's pretty neat. The p, b, e, r, and t flags should turn on the progress bar, byte counter, ETA timer, rate counter, and timer, respectively. After looking at the man page, it appears that this is actually the default behavior. So I could have just used pv with no options.
Last edited by jmagnare (2013-08-29 17:03:00) -
I WOULD LIKE TO DELETE MY ACCOUNT OR SOLVE THIS TROUBLE PLEASE SEE THIS
VERY URGENT (MY EMAIL IS PLENTY OF THESE QUESTIONS
This is for the administrator(s)
I Am receiving from your forum site many of THESE:
aemme,
You are watching the category "System Management and Integration", which was updated Nov 11, 2010 4:32:18 AM by Lichti:
<http://forums.oracle.com/forums/category.jspa?categoryID=201>
or
<Data Integrator
or
<Use Oracle DB user function
For your convenience, the new message is included below:
I would like to delete my account or solve the problem in another way, as you like.
I can't delete my accountr from the control panel, I don't know how to do it.
PLEASE HELPYes now the problem seems to be solved.
But really this morning my email account was plenty of these ...questions.
Be careful because....privacy ... and so on...
A last question, before I was used to enter into Database >> SQL and PL/SQL how can I get there???
:))))))))))))))))) -
[SOLVED] Having trouble dual booting Windows: normal.mod not found
Hello every one, I'm a Gentoo user who wants to try something different. So I thought I'd install Arch on my new laptop.
Anyhow, this is my first proper UEFI install on real hardware. So I might be doing something stupid here, but I've searched all over the forums and the internet and can't seem to find anything similar about it. So please excuse me if there is already a similar or very similar topic
Since I'm new to Arch I followed the Beginner's guide. Everything went fine, install was very quick compared to Gentoo phew... anyhow there came the tricky part, the bootloader install, as I am a real total noob with EFI. I followed the instructions carefully.
The result is: I now have 4 entries in my GRUB menu, 2 are Arch and its fallback, one is Windows 8 detected by osprober, and one is my custom Windows 8 with the usual chain loading setup that i've always used (with some fixes found on the 'net). Arch boots fine, but Windows doesn't; I get booted down to the recovery console, with an error that GRUB cannot find /boot/grub/x86_64-efi/normal.mod. Even though the file is of course existing. I tried to "insmod part_gpt" and others, and it couldn't find any of them, except part_msdos. Yeah I know, it's weird. Unfortunately I need to use Windows sometimes for some programs like Guitar Rig which need a good native audio connection.
My opinion is that there must be some place where the paths are not correct. But I keep looking at the config files and I can't find anything wrong with them...
The system had a Linux Mint 14 install on it previously but it bricked itself while updating to Mint 15. And I only really had Mint on there because of the automatic bootloader setup. Which worked well up to when I got rid of Mint (it was on /dev/sda8, where Arch is now). I hope it doesn't complicate the matter.
My EFI system partition is /dev/sda2. There are so many partitions because it's a Samsung laptop and there's a partition for samsung recovery, one for windows 8 recovery, and so on... The only "real" partitions are /dev/sda2 for EFI, /dev/sda4 for Windows, and /dev/sda8 for Arch.
Here are some command outputs to show you what my system is like. I hope they are helpful. If there's anything missing I shall supplement it of course!
Thanks in advance
sudo efibootmgr -v
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 0002,0001,0006,0003,0000
Boot0000* Windows Boot Manager Vendor(99e275e7-75a0-4b37-a2e6-c5385e6c00cb,)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................
Boot0001* linuxmint HD(2,fa000,96000,f718c38a-c1d8-4c72-9b59-e098594840a2)File(\EFI\linuxmint\grubx64.efi)
Boot0002* arch_grub HD(2,fa000,96000,f718c38a-c1d8-4c72-9b59-e098594840a2)File(\EFI\arch_grub\grubx64.efi)
Boot0003* Windows Boot Manager HD(2,fa000,96000,f718c38a-c1d8-4c72-9b59-e098594840a2)File(\EFI\Microsoft\Boot\bootmgfw.efi)
Boot0006* Windows Boot Manager HD(6,3a186001,200000,d41549d3-0b93-40ef-4173-636c65706975)File(\EFI\Microsoft\Boot\bootmgfw.efi)
mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=2997764k,nr_inodes=749441,mode=755)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/sda8 on / type ext4 (rw,relatime,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=35,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
tmpfs on /tmp type tmpfs (rw)
mqueue on /dev/mqueue type mqueue (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
/dev/sda2 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
[james@James-Laptop ~]$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 499M 0 part
├─sda2 8:2 0 300M 0 part /boot
├─sda3 8:3 0 128M 0 part
├─sda4 8:4 0 342.4G 0 part
├─sda5 8:5 0 23.8G 0 part
├─sda6 8:6 0 1G 0 part
├─sda7 8:7 0 977K 0 part
├─sda8 8:8 0 91.8G 0 part /
└─sda9 8:9 0 5.9G 0 part [SWAP]
[james@James-Laptop ~]$ cat /boot/grub/grub.cfg
# DO NOT EDIT THIS FILE
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt8 --hint-efi=hd0,gpt8 --hint-baremetal=ahci0,gpt8 7e2ee467-3fd3-41b3-8c1f-62cc45f2d098
else
search --no-floppy --fs-uuid --set=root 7e2ee467-3fd3-41b3-8c1f-62cc45f2d098
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_GB
insmod gettext
fi
terminal_input console
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux, with Linux core repo kernel' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-true-7e2ee467-3fd3-41b3-8c1f-62cc45f2d098' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod fat
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 ECB7-2436
else
search --no-floppy --fs-uuid --set=root ECB7-2436
fi
echo 'Loading Linux core repo kernel ...'
linux /vmlinuz-linux root=UUID=7e2ee467-3fd3-41b3-8c1f-62cc45f2d098 rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux.img
menuentry 'Arch Linux, with Linux core repo kernel (Fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-fallback-7e2ee467-3fd3-41b3-8c1f-62cc45f2d098' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod fat
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 ECB7-2436
else
search --no-floppy --fs-uuid --set=root ECB7-2436
fi
echo 'Loading Linux core repo kernel ...'
linux /vmlinuz-linux root=UUID=7e2ee467-3fd3-41b3-8c1f-62cc45f2d098 rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-fallback.img
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-efi-ECB7-2436' {
insmod part_gpt
insmod fat
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 ECB7-2436
else
search --no-floppy --fs-uuid --set=root ECB7-2436
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "Windows 8" {
insmod part_gpt
insmod fat
insmod search_fs_uuid
insmod chain
search --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 ECB7-2436
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
### BEGIN /etc/grub.d/60_memtest86+ ###
### END /etc/grub.d/60_memtest86+ ###
Last edited by jabonz2048 (2013-09-19 15:07:34)Hello cfr,
Thanks for your reply!
Yes, I had /dev/sda2, my EFI partition, mounted at /boot when I did grub-install and grub-mkconfig. I also had the efivars filesystem unmounted, and ran rmmod plus modprobe on efivars as written.
umount /sys/firmware/efi/efivars
# modprobe -r efivars
# modprobe efivars
My command was exactly the same as the beginner's guide, and it was
grub-install --efi-directory=/boot --bootloader-id=arch_grub --recheck
Now looking at that command, I am wondering, should it have been "--efi-directory=/boot/EFI" or something similar like that? But the fact that Arch boots and runs fine kind of shows the bootloader did indeed install correctly... Or partially at least.
Maybe an ls -l of some of my /boot directories might be useful. Thanks!
ls -l /boot
total 16352
drwxr-xr-x 39 root root 4096 Nov 17 2012 Boot
-r-xr-xr-x 1 root root 398156 Jul 25 2012 bootmgr
-rwxr-xr-x 1 root root 1 Jun 2 2012 BOOTNXT
drwxr-xr-x 6 root root 4096 Aug 26 15:28 EFI
drwxr-xr-x 6 root root 4096 Aug 26 17:39 grub
-rwxr-xr-x 1 root root 10351180 Aug 26 14:19 initramfs-linux-fallback.img
-rwxr-xr-x 1 root root 2185900 Aug 26 14:18 initramfs-linux.img
-rwxr-xr-x 1 root root 3782368 Aug 21 11:53 vmlinuz-linux
[james@James-Laptop teamviewer]$ ls -l /boot/EFI
total 16
drwxr-xr-x 2 root root 4096 Aug 26 15:28 arch_grub
drwxr-xr-x 2 root root 4096 May 22 20:53 Boot
drwxr-xr-x 2 root root 4096 May 22 20:53 linuxmint
drwxr-xr-x 3 root root 4096 Nov 17 2012 Microsoft
[james@James-Laptop teamviewer]$ ls -l /boot/grub/
total 48
drwxr-xr-x 2 root root 4096 Aug 26 15:28 fonts
-rwxr-xr-x 1 root root 4767 Aug 26 17:39 grub.cfg
-rwxr-xr-x 1 root root 4063 Aug 26 14:22 grub.cfg.example
-rwxr-xr-x 1 root root 1024 Aug 26 15:28 grubenv
drwxr-xr-x 2 root root 4096 Aug 26 15:28 locale
drwxr-xr-x 3 root root 4096 Aug 26 15:28 themes
drwxr-xr-x 2 root root 20480 Aug 26 15:28 x86_64-efi -
[solved] "sudo meld" doesn't work
Hi there,
recently I've installed "meld" for merging tasks. The problem: as a user meld works pretty fine but obviously doesn't save any changes to files that require root permission. Now I have tried to start meld with sudo, but this doesn't work:
$ sudo meld
Passwort:
** (process:9665): WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'
** (process:9665): WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'
** (process:9665): WARNING **: Trying to register gtype 'GSocketMsgFlags' as enum when in fact it is of type 'GFlags'
No protocol specified
/usr/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
warnings.warn(str(e), _gtk.Warning)
/usr/bin/meld:126: GtkWarning: IA__gtk_icon_theme_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
gtk.icon_theme_get_default().append_search_path(meld.paths.icon_dir())
Traceback (most recent call last):
File "/usr/bin/meld", line 126, in <module>
gtk.icon_theme_get_default().append_search_path(meld.paths.icon_dir())
AttributeError: 'NoneType' object has no attribute 'append_search_path'
I must admit that i don't have an idea what that means
So, any help would be appreciated
Last edited by swordfish (2012-06-03 12:18:09)/dev/zero wrote:Something like gksudo may work?
Seems you are right . I've installed gksu and now it seems to work - the GUI starts when I use "gksudo meld".
Maybe gksu should become a dependency for meld?!
Thanks a lot -
(Solved) Having trouble installing vlc and openoffice
I am having trouble installing both VLC and Openoffice.
VLC
I tried typing in:
yaourt -S vlc
At first, it finds the package, and the first time I did it, downloaded quite a bit of stuff, and then it failed after installing a rather large package and then says :
error: failed retreiving file 'vlc-0.9.9a-6-i686.pkg.tar.bz' from archlinux.unix.heads.org : Not Found
Any idea what may be causing this?
OpenOffice
I tried typing in:
yaourt -S openoffice
Then it said it could not find openoffice in my /etc/customizepkg.d and then asks me to change my PKGBUILD and I had no idea what to edit in it.
Then, it tried to install it, and it tells me svn is not found in AUR.
What does this mean and how can I get openoffice?
Last edited by iscalio (2009-07-09 08:26:02)You need to use the -y flag to update your local repository list.
Ie pacman -Sy
You can conveniently combine all of your tasks..
pacman -Sy vlc openoffice-base
Error retrieving a file means either
A) The mirror you are using is updating itself and you were unlucky enough to sync right when it was doing so.. youll need to wait a little while and try -Sy again then..
B) Related to A.. your database could be either older or newer than the mirror you are using. If you switched mirrors recently, this happens sometimes. Most mirrors update ~daily, but some update ~weekly. -Sy to sync.. you could try -Syy to force a full sync so that even lists of supposedly up-to-date repositories (core,extra,so forth) are synced (doing so is only good/useful if you have problems)..
C) Your mirror is offline.. change it to another one in /etc/pacman.d/mirrorlist
D) Your internet is not running / your DNS is not working properly.. try to ping a site you know is online to be sure. Google is always a good choice. ping www.google.com. You can ctrl+c to end it if it responds as expected. Fix your internet (see the wiki) and domain name server (/etc/resolv.conf and your router) if you have problems.
You may or may not also wish to pacman -Scc in order to clean out your cache of saved packages in case there is a download problem.
Your post gives the impression you don't understand pacman vs yaourt.. apologies if i'm wrong, but just in case:
Pacman is used for official binary repository files. Yaourt can do pacman's job in addition to its own with the same syntax (imo it does a pretty slow and lousy job of such though), but it's real original function is primarily to install 3rd party / community packages that the Arch devs either can't or won't maintain (and most often, have not "ok"ed them as safe to install). You should look at yaourt in the wiki.. when it asks you to change the pkgbuild I imagine you mean when it says 'what do you want to edit it with?'.. which you dont need to edit it at all. The reason it asks you is because yaourt can install stuff from AUR, which like I said is 3rd party / community stuff that can contain something malicious (AUR is open to submissions, unlike the official repositories) and you are highly advised to look it over for something fishy before compiling and installing. FYI -- believe me, you don't want to compile openoffice without reaaally good reason on a really fast machine. It hurts. Your machine will be as usable as a doorstop for a very long time while it's doing it's business. Just save your time and patience, install the compiled binary via pacman instead.
Please use the wiki, forum search functions, and man pages. Most of the Arch community is friendly and knowledgeable, but people get (rightly) irked when their work maintaining the aforementioned to answer queries like this one are ignored.
Last edited by FrozenFox (2009-07-09 03:26:02) -
[SOLVED] Having trouble making QT apps use GTK theme
Hello everyone, I'm having trouble making QT apps use my GTK theme in openbox.
Some apps seem to work just fine but others don't.
^Such as above, as you can see VLC is working, as is qtconfig, but k9copy and k3b are not.
I've did the suggestions that are listed in the wiki. (http://tinyurl.com/ybhb7yr)
And even rebooted after I did them, still no go.
My .gtkrc-2.0 file simply contains:
gtk-theme-name="Clearlooks_blackblue"
gtk-icon-theme-name="Tango"
Does anyone have any ideas why it's not working with k9copy and k3b/how to fix it?
Thanks.
Last edited by tgblb (2010-03-22 02:39:31)anonymous_user wrote:k9copy and k3b are KDE apps not Qt.
Yes, but don't they use QT?
And if not, what do they use? lol. And is there anyway to make them use my GTK theme? -
[solved]Sudo asking for password when it shouldn't through a sh script
Bottom of my sudoers file looks like this:
user username = (root) NOPASSWD: /usr/bin/g15daemon
user username = (root) NOPASSWD: /usr/bin/g15stats
Shell script looks like that:
#!/bin/sh
sudo /usr/bin/g15daemon -k &
sleep 2 && sudo /usr/bin/g15daemon &
sleep 5 && sudo /usr/bin/g15stats
If I run these commands from the terminal they work as intended (no password) but when I execute that shell script it asks for a password.
Last edited by rabcor (2014-05-01 14:32:00)teateawhy wrote:1. The reason it asks for a password is the first command in the script. The complete command including arguments must be specified in /etc/sudoers. If you want to allow "/usr/bin/g15daemon -k" to be run from sudo, write this string after NOPASSWD.
I've seen this claim before on these forums, but that's not true:
man sudoers wrote:A simple file name allows the user to run the command with any arguments he/she wishes.
The reason it doesn't work is the "user username" part. You probably have an actual username there that you don't want to share with us, but then what exactly is the difference between "user" and "username"? The second element should be a host list:
man sudoers wrote:The basic structure of a user specification is “who where = (as_whom) what”.
To keep it simple you can use ALL for both "where" and "as_whom". -
[solved] sudo command in a Bash function?
Hello there,
I need to use sudo inside of a Bash function in order to allow my laptop to hibernate after a certain time using "systemctl hibernate".
However, I cannot figure out what's the correct way to include sudo inside of my function snippet:
function hibernate {
echo "System is going to hibernate in $1 minute(s)..."
sleep $1m ; systemctl hibernate
alias hibernate_timer=sudo hibernate # sudo misplaced here
Last edited by orschiro (2013-06-26 20:33:47)you'd need sudo's -E parameter for that, otherwise that function is not defined in the su environment.
EDIT: -E is not sufficient.
man sudoers wrote:In all cases, environment variables with a value beginning with () are
removed as they could be interpreted as bash functions. The list of environ‐
ment variables that sudo allows or denies is contained in the output of “sudo
-V” when run as root.
You cannot pass functions to sudo - the alias is not relevant, you couldn't do this directly: `sudo hibernate` would fail.
I'd also recommend putting the sudo as "deep" as possible: right on the systemctl command. There is a reason bash functions are not allowed to be 'sudo'ed - and running sudo on a function that includes a sleep command seem particularly bad to me.
Last edited by Trilby (2013-06-26 17:59:18) -
[Not solved][Sudo/X] Enter key not released after typing password
After upgrade to xserver 1.16 I noticed strange thing - any command I try to run with sudo "hangs" keyboard and mouse. It looks like after typing password and pressing <Enter>, this key is not released.
System is still responsive, for example I can watch youtube, listen to music, there is no high cpu usage, but inputs are blocked.
For example:
sudoedit /etc/whateverrc
opens editor and cursor goes down.
This is not a problem with my keyboard
In tty sudo works fine.
Last edited by n0rv (2014-08-09 19:45:28)jasonwryan wrote:How do you start X?
startx
What DE/WM?
AwesomeWM, quite old setup.
What is in your journal/logs?
After "hang" X still works, so I need to kill it (alt+sysrq+re) or reboot.
Xorg.log.0.old
[ 5770.071] (II) RADEON(0): Modeline "1680x1050"x0.0 119.00 1680 1728 1760 1840 1050 1053 1059 1080 +hsync -vsync (64.7 kHz e)
[ 5770.071] (II) RADEON(0): Modeline "1920x1080"x60.0 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -hsync +vsync (67.1 kHz e)
[ 5770.110] (II) systemd-logind: got resume for 13:68
[ 5770.110] (II) systemd-logind: got resume for 13:67
[ 5770.126] (II) systemd-logind: got resume for 13:64
[ 5770.156] (II) systemd-logind: got resume for 13:65
[ 5770.209] (II) systemd-logind: got resume for 13:66
[ 5885.135] (II) systemd-logind: got pause for 226:0
[ 5885.135] (II) systemd-logind: got pause for 13:68
[ 5885.135] (II) systemd-logind: got pause for 13:67
[ 5885.135] (II) systemd-logind: got pause for 13:64
[ 5885.135] (II) systemd-logind: got pause for 13:65
[ 5885.135] (II) systemd-logind: got pause for 13:66
[ 5893.481] (II) evdev: USB Keyboard: Close
[ 5893.481] (II) UnloadModule: "evdev"
[ 5893.481] (II) systemd-logind: releasing fd for 13:66
[ 5893.481] (EE) systemd-logind: failed to release device: Connection is closed
[ 5893.481] (II) evdev: USB Keyboard: Close
[ 5893.481] (II) UnloadModule: "evdev"
[ 5893.481] (II) systemd-logind: releasing fd for 13:65
[ 5893.481] (EE) systemd-logind: failed to release device: Connection is closed
[ 5893.481] (II) evdev: A4Tech PS/2+USB Mouse: Close
[ 5893.481] (II) UnloadModule: "evdev"
[ 5893.481] (II) systemd-logind: releasing fd for 13:64
[ 5893.481] (EE) systemd-logind: failed to release device: Connection is closed
[ 5893.481] (II) evdev: Power Button: Close
[ 5893.481] (II) UnloadModule: "evdev"
[ 5893.481] (II) systemd-logind: releasing fd for 13:67
[ 5893.481] (EE) systemd-logind: failed to release device: Connection is closed
[ 5893.481] (II) evdev: Power Button: Close
[ 5893.481] (II) UnloadModule: "evdev"
[ 5893.481] (II) systemd-logind: releasing fd for 13:68
[ 5893.481] (EE) systemd-logind: failed to release device: Connection is closed
[ 5893.560] (WW) xf86CloseConsole: KDSETMODE failed: Input/output error
[ 5893.560] (WW) xf86CloseConsole: VT_GETMODE failed: Input/output error
[ 5893.560] (EE)
Fatal server error:
[ 5893.560] (EE) xf86CloseConsole: VT_ACTIVATE failed: Input/output error
[ 5893.560] (EE)
[ 5893.560] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 5893.560] (EE) Please also check the log file at "/home/n0rv/.local/share/xorg/Xorg.0.log" for additional information.
[ 5893.560] (EE)
[ 5893.560] (EE)
[ 5893.560] (EE) Backtrace:
[ 5893.613] (EE) 0: /usr/bin/Xorg.bin (xorg_backtrace+0x56) [0x593966]
[ 5893.614] (EE) 1: /usr/bin/Xorg.bin (0x400000+0x197b69) [0x597b69]
[ 5893.614] (EE) 2: /usr/lib/libc.so.6 (0x7f5912809000+0x33df0) [0x7f591283cdf0]
[ 5893.614] (EE)
[ 5893.614] (EE) Segmentation fault at address 0x0
[ 5893.614] (EE)
FatalError re-entered, aborting
[ 5893.614] (EE) Caught signal 11 (Segmentation fault). Server aborting
[ 5893.614] (EE)
journalctl:
sie 07 23:15:12 Arch sudo[3368]: n0rv : TTY=pts/1 ; PWD=/home/n0rv ; USER=root ; COMMAND=sudoedit /etc/yaourtrc
sie 07 23:15:12 Arch sudoedit[3368]: pam_unix(sudo:session): session opened for user root by (uid=0)
sie 07 23:15:12 Arch systemd[1]: Starting user-0.slice.
sie 07 23:15:12 Arch systemd[1]: Created slice user-0.slice.
sie 07 23:15:12 Arch systemd[1]: Starting User Manager for UID 0...
sie 07 23:15:12 Arch systemd[3372]: pam_unix(systemd-user:session): session opened for user root by (uid=0)
sie 07 23:15:12 Arch systemd-logind[1230]: New session c2 of user root.
sie 07 23:15:12 Arch systemd[1]: Starting Session c2 of user root.
sie 07 23:15:12 Arch systemd[1]: Started Session c2 of user root.
sie 07 23:15:12 Arch systemd[3372]: Starting -.slice.
sie 07 23:15:12 Arch systemd[3372]: Created slice -.slice.
sie 07 23:15:12 Arch systemd[3372]: Starting D-Bus Message Bus Socket.
sie 07 23:15:12 Arch systemd[3372]: Listening on D-Bus Message Bus Socket.
sie 07 23:15:12 Arch systemd[3372]: Starting Paths.
sie 07 23:15:12 Arch systemd[3372]: Reached target Paths.
sie 07 23:15:12 Arch systemd[3372]: Starting Timers.
sie 07 23:15:12 Arch systemd[3372]: Reached target Timers.
sie 07 23:15:12 Arch systemd[3372]: Starting Sockets.
sie 07 23:15:12 Arch systemd[3372]: Reached target Sockets.
sie 07 23:15:12 Arch systemd[3372]: Starting Basic System.
sie 07 23:15:12 Arch systemd[3372]: Reached target Basic System.
sie 07 23:15:12 Arch systemd[3372]: Starting Default.
sie 07 23:15:12 Arch systemd[3372]: Reached target Default.
sie 07 23:15:12 Arch systemd[3372]: Startup finished in 7ms.
sie 07 23:15:12 Arch systemd[1]: Started User Manager for UID 0.
sie 07 23:15:20 Arch kernel: SysRq : Keyboard mode set to system default
sie 07 23:15:20 Arch systemd-journal[1227]: Journal stopped
sie 07 23:15:21 Arch systemd-journal[3399]: Permanent journal is using 131.6M (max allowed 100.0M, trying to leave 2.9G free of 6.0G available → current limit 131.6M).
sie 07 23:15:21 Arch kernel: SysRq : Terminate All Tasks
sie 07 23:15:21 Arch systemd-journald[1227]: Received SIGTERM.
sie 07 23:15:21 Arch systemd[1]: [email protected] has no holdoff time, scheduling restart. -
[SOLVED] sudo pm-suspend requires password [SOLVED]
Can anyone tell me why sudo pm-suspend still requires a password even though I have set the following in my sudoers file
# sudoers file.
# This file MUST be edited with the 'visudo' command as root.
# Failure to use 'visudo' may result in syntax or file permission errors
# that prevent sudo from running.
# See the sudoers man page for the details on how to write a sudoers file.
# Host alias specification
# User alias specification
# Cmnd alias specification
# Defaults specification
# Defaults specification
# Reset environment by default
Defaults env_reset
# Set default EDITOR to vim, and do not allow visudo to use EDITOR/VISUAL.
Defaults editor=/usr/bin/nano, !env_editor
Defaults:ALL timestamp_timeout=0
# Runas alias specification
# User privilege specification
root ALL=(ALL) ALL
%power ALL=(ALL) NOPASSWD:/sbin/shutdown -h now
%power ALL=(ALL) NOPASSWD:/sbin/reboot
%power ALL=(ALL) NOPASSWD:/usr/sbin/pm-suspend
%power ALL=(ALL) NOPASSWD:/usr/sbin/pm-hibernate
%power ALL=(ALL) NOPASSWD:/usr/sbin/pm-powersave
# Uncomment to allow people in group wheel to run all commands
%wheel ALL=(ALL) ALL
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
And here are a list of the groups for my user
adm disk wheel locate games network video audio optical floppy storage power users kporter
Thanks ahead of time!
Last edited by kportertx (2010-07-15 06:00:15)# sudoers file.
# This file MUST be edited with the 'visudo' command as root.
# Failure to use 'visudo' may result in syntax or file permission errors
# that prevent sudo from running.
# See the sudoers man page for the details on how to write a sudoers file.
# Host alias specification
# User alias specification
# Cmnd alias specification
Cmnd_Alias NETBOOK_CMDS = /usr/local/sbin/backlight, /usr/local/sbin/backlight_reset, /usr/local/sbin/wireless_toggle, /usr/local/sbin/cpufreq_toggle, /usr/sbin/pm-suspend
# Defaults specification
# Runas alias specification
# User privilege specification
root ALL=(ALL) ALL
meyithi ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
%users ALL=(ALL) NOPASSWD: NETBOOK_CMDS
You definitely need the space, if you're not using visudo to edit sudoers it won't pick up the errors.
Maybe you are looking for
-
Editing Panasonic GH1 1280 x 720 60 frame video
I got an old Macbook with previous ver of iMovie which does not support editing AVCHD. I know that iMovie 09 is able to handle AVCHD and support video from Panasonic GH1, so I am planning to a get a new mac with new OS and iMovie 09. Would anyone ple
-
Downloaded VLC player, and put some utubes downloaded on my Mac then connected to big TV, can't play, no video but there is sound. Keynote presentation created from my Mac with sound track and transferred over to iPad, everything is off and no sound,
-
I'm trying to make a chatting program for my home network, but I can't find one good tutorial on using java and networking. They all just show me how to make a server and client programs on my own machine. Big bunch a help that'll give me. Can someon
-
Stmt.executeQuery() Problem
Hello All, The below statement is taking too long to respond. stmt.executeQuery(query) i donot think any problem with the query, but im not sure why it is taking too long. But Finally its executing after a long time. Can anybody help please. This is
-
AHT on a Mac Mini 10.6.8
Hi, I'm currently experiencing some problems with XBMC 11 & 12. In order to isolate the bug i would like to proceed to an AHT on my Mac Mini under 10.6.8. Does anyone can explain me how to ? Thanks Nemrod