Tag Info

New answers tagged

0

Gilles's answer above is very good, but note you must match the "type" with pam_nologin.so's type. So for example, on my RHEL5 system: account [default=1 success=ignore] pam_succeed_if.so quiet user ingroup nx account required pam_nologin.so ...if I used auth, as the other answer requested, it wouldn't work.


1

SMBNetFS uses Gnome-keyring by default. Any passwords entered and saved in Gnome-keyring while browsing Samba shares in Nautilus should be used automatically. So if storing passwords in Gnome-keyring is OK, SMBNetFS is more convenient. It automatically mounts the entire network neighbourhood. This information is from the sample SMBNetFS config file, but I ...


2

Since you're using cpio, you're actually making an initramfs, not an initrd. An initrd would be stored as a filesystem image, not as a cpio archive. Initrd and initramfs have similar roles in the Linux boot process, to provide some files that are available before the true root filesystem (and that are used to mount the true root filesystem); they are handled ...


2

Those errors are there because your user has not the permission to create nodes. Only root can create nodes other than fifos and sockets (see mknod documentation under EPERM) When you repack again the initrd, those special file wouldn't be in there. To repack the initrd there is an option called --owner that can be used to set the owner for all files. BUT, ...


1

Using groupadd to add groups to the system requires root privileges. Maybe you just need newgrp [newgroup]. This makes [newgroup] your primary group and adds the group to your group list (see cmd groups). Of course, first your system administrator has to put you in [newgroup], but you don't have to logout and in.


3

This is what worked for me: USER_NAME=$(printf '%s' "${SUDO_USER:-$USER}") sudo -u $USER_NAME <command-to-exec-in-nonroot-context>


8

The sudoers file allows specifying commands to permit: username ALL=(root) NOPASSWD: /bin/foo bar baz Here username is the user you want to permit, and the command goes at the end of the line. If you specify arguments to the command, the user can only run it with exactly those arguments, but if you don't specify them here, the user can run the command ...


0

Make sure bin subdirectories of both packages (libxml2/libxslt) are on your PATH. They contain *-config scripts which are used during compilation of lxml to find out where libxml2/libxslt were installed. [pdobrogost@host /]$ echo $PATH (...):/opt/libxslt-1.1.27/bin:/opt/libxml2-2.6.32/bin:(...) [pdobrogost@host /]$ which xml2-config && which ...



Top 50 recent answers are included