In Fedora Cloud Base 27 how is the 'fedora' user configured so that
it can do password-less sudo?
by Paul Gier
I'm running a Fedora Cloud Base 27 instance in openstack and ssh using the 'fedora' user works fine, and I can sudo without a password. However, if I add a new user 'foobar' and add this user to the wheel group, this user needs a password in order to use sudo. This makes sense based on the config in /etc/sudoers which has '%wheel ALL=(ALL) ALL'. But I'm wondering how is the 'fedora' user configured so that it's in the same wheel group and can sudo without a password?
6 years, 4 months
since upgrading to F26, 'ps' will wedge the entire OS
by Lonni J Friedman
Greetings,
I've been running Fedora since the Fedora Core days. About 11 days
ago, I upgraded my x86_64 system from 25 to 26. Prior to upgrading to
26, I was running 25 for over 6 months without any stability issues.
Since the upgrade to 26, something inspecting the process list is
wedging the OS. The problem isn't even obvious until I happen to run
'ps' and the command hangs indefinitely, and can't be killed.
However, at that point, the load avg takes off, and just keeps
climbing over time. The system is still mostly responsive, but
clearly its very unhappy about something. I'm able to check 'dmesg'
as well as /var/log/messages while its in the bad state, and there's
nothing new in either, and definitely nothing bad, unusual or
suspicious. Unfortunately, I can't even shutdown/reboot gracefully at
this point, as anything & everything that wants to inspect the process
list also hangs, and so the system never fully shuts down (I waited a
full hour the first time hoping that eventually it would proceed). I
have to hit RESET and then (thankfully) the system boots up just fine
again.
The first hang happened about 28 hours after upgrading to 26. Things
were fine after that for just over 9 days of uptime when the same
thing happened all over again.
I've tried googling to see if there's any one else running into this,
and didn't find much. This was the closest thing, but its over a year
ago:
https://forums.fedoraforum.org/archive/index.php/t-310268.html
At this point, I'm wondering whether anyone:
0) recognizes this as a known bug
1) has any ideas how to debug it further
thanks!
6 years, 4 months
Atomic and OpsWorks?
by Dave Johansen
Has anyone used CentOS or Fedora Atomic with OpsWorks? My searches on the
internet haven't turned anything up, so I wanted to see if there was any
experience/advice on here.
Thanks,
Dave
6 years, 4 months
multi-head config question
by François Patte
Bonjour,
I have a dual head configuration with an Nvidia graphic card, which
perfectly works. but the monitors are standard ones (LG, resolution:
1280x1024) and I would like to add a monitor for treating my photos with
darktable.
I am wondering if I could add another graphic card in order to have a
third monitor with an HD resolution (1920x1080 or more) and a specific
color profile.
If yes, is there some documentation to configure my fedora?
Thank you.
--
François Patte
UFR de mathématiques et informatique
Laboratoire CNRS MAP5, UMR 8145
Université Paris Descartes
45, rue des Saints Pères
F-75270 Paris Cedex 06
Tél. +33 (0)6 7892 5822
http://www.math-info.univ-paris5.fr/~patte
6 years, 4 months
Problem With LDAP provider in Searching for parent groups for user
by Иван Мастренко
Hello!
I Have the problem with Getting groups list for user in ldap:
[sssd[be[DOMAIN_GROUP2]]] [sdap_initgr_rfc2307bis_next_base] (0x0400): Searching for parent groups for user [uid=hwadmin_sssd,ou=users,dc=my,dc=domain] with base [ou=groups,dc=my,dc=domain]
[sssd[be[DOMAIN_GROUP2]]] [sdap_get_generic_ext_step] (0x0400): calling ldap_search_ext with [(&(memberUid=uid=hwadmin_sssd,ou=users,dc=my,dc=domain)(objectClass=posixGroup)(cn=*))][ou=groups,dc=my,dc=domain].
As seen above SSSD try to search groups with filter where memberUid = <fullDN>, but this is not correct. It should search for: (&(memberUid=hwadmin_sssd)(objectClass=posixGroup)(cn=*))
My config is:
[sssd]
services = nss, pam, autofs
config_file_version = 2
domains = ,DOMAIN_GROUP2
override_homedir = /home/%u
[domain/default]
debug_level = 7
[domain/DOMAIN_GROUP2]
autofs_provider = ldap
cache_credentials = False
id_provider = ldap
auth_provider = ldap
chpass_provider = ldap
ldap_uri = ldap://172.20.47.115:389
ldap_schema = rfc2307bis
ldap_default_bind_dn = uid=sssd,ou=ServiceAccounts,dc=my,dc=domain
ldap_default_authtok = password
ldap_group_member = memberUid
#ldap_use_tokengroups = false
# TLS/SSL
ldap_tls_reqcert = never
ldap_id_use_start_tls = False
ldap_tls_cacertdir = /etc/openldap/cacerts
# SEARCH BASE
ldap_search_base = dc=my,dc=domain
ldap_user_search_base = ou=users,dc=my,dc=domain
ldap_group_search_base = ou=groups,dc=my,dc=domain
#ldap_group_object_class = groupOfNames
# FILTER
access_provider = ldap
ldap_access_filter = (memberOf=cn=HWS_ADMINS,ou=groups,dc=my,dc=domain)
override_gid = 1001
override_shell = /bin/bash
skel_dir=/etc/skel_ptk/
debug_level = 7
[nss]
homedir_substring = /home
debug_level = 7
[pam]
[sudo]
[autofs]
[ssh]
[pac]
[ifp]
6 years, 4 months
Re: JOB | Permanent Sysadmin (Netherlands or remote)
by Saint Michael
I can do the job remotely. I am Linux+database guru.
Philip
On Tue, Dec 5, 2017 at 10:43 PM, James Tobin <jamesbtobin(a)gmail.com> wrote:
> Hello, I'm working with an employer that is looking to hire a
> permanent Linux sysadmin to become their expert on Hadoop and Kafka
> maintenance. This person can be based either at the Netherlands
> office or remote. Consequently I had hoped that some members of this
> mailing list may like to discuss with me further; off-list. I can be
> reached using "JamesBTobin (at) Gmail (dot) Com". Kind regards, James
> _______________________________________________
> users mailing list -- users(a)lists.fedoraproject.org
> To unsubscribe send an email to users-leave(a)lists.fedoraproject.org
>
6 years, 4 months
Copy on right click with gnome terminal
by Kevin Wilson
Hello, Fedora users,
I am working with gnome-terminal under Fedora 27. I want to be able to
select text with the right click of a mouse, and to
paste it immediately when pressing the left button (not the middle
button). I am used to this with apps like putty, mRmoteNG and others
apps.
There was a patch that can be applied to gnome-terminal source for Fedora 15,
in the following link:
https://github.com/jbholland/gnome-terminal-right-click
It is based on an Ubuntu patch:
http://www.taika.org/~tomba/gnome-terminal/index.html
It does not apply on F27 as this is a different version. I tried to
add the patch code
manually but it did not work for me - I am not an expert at all about
coding gnome apps.
Any ideas ?
Regards,
Kevin
6 years, 4 months
Re: Arithmetic error or function setup incorrectly
by Antonio Olivares
On Sunday, December 3, 2017, 9:48:17 PM CST, Jon LaBadie <jonfu(a)jgcomp.com> wrote:
Antonio,
Do you have control over the contents (format) of the data?
Here that would be "Soccer.dat".
If yes I'd suggest a format change. Separate the goals with
dashes (-) or commas (,) or whatever, just no something that
makes you think of them as numbers but as strings to be
converted to numbers later.
Assuming you used dashes teams 2 and 8 would be:
Team2 1 1-2
Team8 2-0-1 2-0-3
Your code could then use split(...) to put the goal counts into
an array. For example.
split($2, GF, "-")
split($3, GA, "-")
You would now have two arrays GF (Goals For) with up to 3 elements.
The first would be regulation, second overtime, third penalty kicks.
And of course the same for GA.
This would also eliminate a potential, but very rare problem,
Some team scores 10 goals in overtime. Your scheme would make
it look like 1 goal and 0 penalty kicks.
Jon
On Sun, Dec 03, 2017 at 12:46:16PM +0000, Antonio Olivares wrote:
> Dear Fedora users,
>
> I have a question regarding a set of data and an awk script that performs some actions, it calculates a GF(goals in favor) GA(goals against), and PTS for each game. Suppose the data is as follows:
>
> Soccer.dat
> Team. GF GA
> Team1 1 2
> Team2 1 1.2
> Team3 2 4
> Team4 3 0
> Team5 4 0
> Team6 3 2
> Team7 1 3
> Team8 2.01 2.03
> Team9 3.03 3.04
> Team10 0 7
> Team11 0.1 0.3
>
> In district play, if a team wins in regulation they earn 3 pts, if you lose 0 pts, if both teams tie in regulation, they play overtime, if they are still tied then penalty kicks decide the outcome of the game. The winners in OT/PKS get 2 pts, the loser get 1 pt.
>
> In Team2 we tied at 1 in regulation, but in OT, the other team scored 2 goals and beat us 3 to 1. The awk script attached inline calculates this, but outputs 1 2 when it should output 1 3. If there is another number in the hundredths place is we shot penalty kicks. I cannot copy the awk script. I will have to attach it. I would like to improve it by tallying a running total per column of GF GA PTS . Ideas are appreciated.
>
> The awk script creates a new integer from the decimal number given. The integer part and the fractional part are used to create the new numbers that end up in GF and GA.
>
> In one case when I put 1 1.2 the output should be 1 3 but it gives me 1 2. This is one of my questions. On the other hand if I put 0.1 and 0.3 it outputs 1 to 3 correctly. Do I have a mistake in my function? I use int($1) to get integer part and ($1-int($1)) to get fractional part.
>
>
> Best Regards,
>
>
> Antonio
> #!bin/sh
>
> # Check for arguments
> if [ $# -eq 0 ]; then
> echo "Usage: $(basename $0) filename"
> exit 1
> fi
>
> if [ ! -f $1 ]; then
> echo "File "$1" doesn't exist!"
> exit 0
> fi
>
> awk '
>
> NR == 1 {
> f[1]=-14; f[2] = f[3] = f[4] = f[5] = 3
> printf "%-14s %-3s %-3s %-3s %-3s\n",
> "OPPONENT", "GF", "GA", "DIF", "PTS"
> }
>
> NR >= 1 {
> F=$2+10*($2-int($2))-($2-int($2));
> A=$3+10*($3-int($3))-($3-int($3));
> tdif=F-A;
> dif=$2-$3
> difb=int($2)-int($3);
> if (dif >= 1 && int(dif) >= 1)
> pts=3;
> else if (dif > 0 && int(difb) >= 0)
> pts=2;
> else if (dif > -1 && int(difb) >= -1)
> pts=1;
> else
> pts=0;
> printf "%-14s %-3d %-3d %-3d %-3d \n",
> $1, F, A, tdif, pts }' $1
> _______________________________________________
> users mailing list -- users(a)lists.fedoraproject.org
> To unsubscribe send an email to users-leave(a)lists.fedoraproject.org
>>> End of included message <<<
--
Jon H. LaBadie jonfu(a)jgcomp.com
Dear Sir,
I do have control of the data. I just wanted to have a solution running from a shell script. I have an opendocument(*.odt) and excel spreadsheet that uses the decimal point and converts the decimal numbers to goals except in the hundredths place which is when we have to shoot penalty kicks(PK) to decide the game, but this is for my fellow coaches, they have to manually input the scores and put a * at the score indicating OT, PKS etc. Some may not understand it :(
My questing regarding the data is that in one case, I had in Team2Team2 1.0 1.2 which should give 1 3 but it output 1 2 :(I had to change to 0.1 and 0.3 and it correctly put the goals at 1 3 and awarded 1 pt for going into OT.
How do I fix the script to account for the new changes/examples? At the end of the running the script should tally up the GF and GA except in PKS those do not count in the DIF. So my soccer.dat would become as follows:
Soccer.dat-------------------------------
@Team1 1 2Team2 1-0 1-2Team3 2 4Team4 3 0@Team5 4 0Team1 3 1@Team2 1 3@Team3 4 3@Team4 3-0 3-1Team5 3 0
At the end of each line, the GF and GA will be adjusted and at the very end of the data, the script should report a running total of all GF and all GA and the PTS.
Thank you very much for your help!
Best Regards,
Antonio
6 years, 4 months
Changing runlevels at boot time
by Alex
Hi,
I have a fedora27 system that boots to a blank screen with the latest
kernels. This has been happening since the system was at least a
fedora26 system.
If I boot to multi-user first, then switch to graphical boot, it works fine.
Adding "3" to the grub command-line ("e" then append "3" to linux16
line, then ctrl-x to boot) does not work to boot the system to
multi-user as per the documentation. However, adding
"systemd.unit=multi-user.target" does.
Also, the rescue kernel also works, but lacks networking. What's the
difference between these two kernels or these two grub invocations?
Notice I've also disabled selinux for now.
Any ideas why the system would become unresponsive and boot to a blank
screen with the latest kernels?
menuentry 'Fedora (4.13.13-300.fc27.x86_64) 27 (Workstation Edition)'
--class fedora --class gnu-linux --class gnu --class os --unrestricted
$menuentry_id_option
'gnulinux-4.13.13-300.fc27.x86_64-advanced-dedb2196-1933-4fa3-b8bd-5123930308b9'
{
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root
--hint-bios=hd3,msdos1 --hint-efi=hd3,msdos1
--hint-baremetal=ahci3,msdos1 --hint='hd0,msdos1'
9522bf8d-db18-48e9-a7d9-ae9c52d4343d
else
search --no-floppy --fs-uuid --set=root
9522bf8d-db18-48e9-a7d9-ae9c52d4343d
fi
linux16 /vmlinuz-4.13.13-300.fc27.x86_64
root=UUID=dedb2196-1933-4fa3-b8bd-5123930308b9 ro security=0
initrd16 /initramfs-4.13.13-300.fc27.x86_64.img
}
menuentry 'Fedora (0-rescue-4289f41d85794f5ebc59779ac5cdcc51) 27
(Workstation Edition)' --class fedora --class gnu-linux --class gnu
--class os --unrestricted $menuentry_id_option
'gnulinux-0-rescue-4289f41d85794f5ebc59779ac5cdcc51-advanced-dedb2196-1933-4fa3-b8bd-5123930308b9'
{
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root
--hint-bios=hd3,msdos1 --hint-efi=hd3,msdos1
--hint-baremetal=ahci3,msdos1 --hint='hd0,msdos1'
9522bf8d-db18-48e9-a7d9-ae9c52d4343d
else
search --no-floppy --fs-uuid --set=root
9522bf8d-db18-48e9-a7d9-ae9c52d4343d
fi
linux16 /vmlinuz-0-rescue-4289f41d85794f5ebc59779ac5cdcc51
root=UUID=dedb2196-1933-4fa3-b8bd-5123930308b9 ro security=0
initrd16 /initramfs-0-rescue-4289f41d85794f5ebc59779ac5cdcc51.img
}
6 years, 4 months