Re: f10 gdm user hide

2009-08-08 Thread Soruk


jask wrote:
> 
> While this is the hard way to hide accounts, it does work to hide accounts
> that have uids > 500.  If you can just change the uid to something between
> 100 and 500 you can avoid all of this.
> 
> This is absolutely a hack so you'll have to repeat some of it each time
> gdm is updated.  You should probably read through this whole post and make
> sure you want to go through this much effort before you start.
> 
> [much snippage]
> 
> Create and edit ~/rpm/SOURCES/gdm-2.24.1-hide-user.patch using this text
> as a template:
>   --- gdm-2.24.1-orig/gui/simple-greeter/gdm-user-manager.c 2009-04-08
> 17:39:32.0 -0500 +++
> gdm-2.24.1/gui/simple-greeter/gdm-user-manager.c 2009-04-08
> 17:40:21.0 -0500 @@ -95,6 +95,7 @@   
> "rpm","nfsnobody",
>  
> "pcap",+  "hideuser", 
>  
> NULL }struct GdmUserManagerPrivate
> 
> Replace "hideuser" with the user name you want to hide.  If you want to
> hide multiple users, do two things... add more lines like the one for
> "hideuser" and 2nd, edit the string @@ -95,6 +95,7 @@ and add one to the 7
> for each extra user.  So if you hide 4 users, that line would look like:
>   @@ -95,6 +95,10 @@
> 
> EVERYTHING FROM HERE DOWN WILL NEED TO BE DONE EACH TIME YOU UPDATE GDM
> AND YOUR HIDDEN USER ACCOUNTS RE-APPEAR AT LOGIN.
> 

Since this was driving me quietly insane on F11, I put together the
following patch that, if it's present, reads GDMCONFDIR/excluded, and
excludes any users listed in there.

Nabble is likely to mangle it if I paste it in, so I've put the patch up at
http://www.eridani.co.uk/gdmfix/gdm-2.26.1-excludes.patch - this is against
the latest update for F11.

It probably doesn't conform to the GDM coding style, and is quite an ugly
hack, but it works for me.

-- Michael
-- 
View this message in context: 
http://n2.nabble.com/f10-gdm-user-hide-tp1646982p3411654.html
Sent from the fedora mailing list archive at Nabble.com.

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: f10 gdm user hide

2009-04-09 Thread k12linux
While this is the hard way to hide accounts, it does work to hide accounts that 
have uids > 500.  If you can just change the uid to something between 100 and 
500 you can avoid all of this.

This is absolutely a hack so you'll have to repeat some of it each time gdm is 
updated.  You should probably read through this whole post and make sure you 
want to go through this much effort before you start.

First, you'll need to have rpm-build and development tools installed.  Easiest 
is probably to do:
# as root yum groupinstall "Development Tools" yum install rpm-build 

Set up an RPM build environment on your PC.  If you don't know how try this:  
Assuming your user name is george...
# As your user account, not root... mkdir /home/george/rpm echo 
"%_topdir   /home/george/rpm" > /home/george/.rpmmacros echo "%dist   
.fc10.george" >> /home/george/.rpmmacros 

Get and install the source rpm.
# This will need to be done each time gdm is updated #again, as your 
user and not as root yumdownloader --source twinkle --destdir /tmp rpm -i 
/tmp/gdm-2.24.1-4.fc10.src.rpm # (assuming that version # is still current)

Check if you have all of the packages needed to build your own version of gdm:
rpmbuild -bp /home/george/rpm/SPECS/gdm.spec
If you are missing any it will tell you.  You'll have to install them in order 
to build your own gdm which hides accounts.

Create and edit ~/rpm/SOURCES/gdm-2.24.1-hide-user.patch using this text as a 
template:
--- gdm-2.24.1-orig/gui/simple-greeter/gdm-user-manager.c 2009-04-08 
17:39:32.0 -0500 +++ gdm-2.24.1/gui/simple-greeter/gdm-user-manager.c 
2009-04-08 17:40:21.0 -0500 @@ -95,6 +95,7 @@   
 "rpm","nfsnobody", 
 "pcap",+  
"hideuser",   NULL }struct 
GdmUserManagerPrivate

Replace "hideuser" with the user name you want to hide.  If you want to hide 
multiple users, do two things... add more lines like the one for "hideuser" and 
2nd, edit the string @@ -95,6 +95,7 @@ and add one to the 7 for each extra 
user.  So if you hide 4 users, that line would look like:
@@ -95,6 +95,10 @@

EVERYTHING FROM HERE DOWN WILL NEED TO BE DONE EACH TIME YOU UPDATE GDM AND 
YOUR HIDDEN USER ACCOUNTS RE-APPEAR AT LOGIN.

Next edit the gdm.spec (in ~/rpm/SOURCES) and:
* At around line 90 there will be several lines starting with Patch##.  Add 
your own between Patch14 and Patch99 like:
Patch40:gdm-2.24.1-hide-user.patch
* At about line 115 are several lines starting with %patch.  Add your own 
between %patch14 and %patch99 like:
%patch40 -p1 -b .hide-user

Save your updated .spec file and build your new gdm .rpm. 
# as your user account and not as root rpmbuild -ba ~/rpm/SPECS/gdm.spec

If all goes well you'll have an installable rpm under ~/rpm/RPMS/i386 now.  
Install as root:
su -c "rpm -Uvh 
/home/george/rpm/RPMS/i386/gdm-2.24.1-4.fc10.george.i386.rpm"


-- 
This is an email sent via The Fedora Community Portal https://fcp.surfsite.org
https://fcp.surfsite.org/modules/newbb/viewtopic.php?post_id=337593&topic_id=65361&forum=10#forumpost337593
If you think, this is spam, please report this to webmas...@fcp.surfsite.org 
and/or blame netad...@dce.k12.wi.us.

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: Why is uid/gid 350 bad? [WAS: Re: f10 gdm user hide]

2009-01-29 Thread Morgan Read
On 26/01/09 10:34, Nifty Fedora Mitch wrote:
> On Sun, Jan 25, 2009 at 10:29:39PM +1300, Morgan Read wrote:
>> Hi Folks
>>
>> I've just set up a user account for our scanner - no the scanner will
>> never login at GDM (will ftp in).  So, after much gnashing of teeth,
>> I've given it a uid/gid of 350 so that it doesn't show up in the GDM
>> login (it seem the only way to hid a user account is to give it a
>> uid/gid below 500).  How long before this rash move turns my machine
>> into a smoking pile of ash?
>>
>> Thanks all,
>> Morgan.
>>
>> On 13/12/08 14:21, Craig White wrote:
>>> On Sat, 2008-12-13 at 02:03 +0100, Kevin Kofler wrote:
 Frank Cox wrote:
> Is there any way to remove a user's name from the list on the initial gdm
> login screen?
> Related:  Is there a way to reorganize the names?  For example, if the
> list has Fred at the top and Sally under that, can the order be reversed
> so Sally is on top?
> Scaling back my question again, does anyone know how to set the default
> username that is initially selected when gdm starts?  So if it's Fred's
> machine he doesn't always have to move the pointer off of Sally first
> before he logs in.
 I'd suggest trying KDM, which can actually be configured.

 su -
 yum install kdebase-workspace
 echo 'DISPLAYMANAGER="KDE"' >/etc/sysconfig/desktop
 reboot

 (That's really "KDE" there, not "KDM".)
 If you want to make sure GNOME is the default desktop, you can add:
 echo 'DESKTOP="GNOME"' >>/etc/sysconfig/desktop
 Likewise, DESKTOP="KDE" makes KDE the systemwide default.

 Then you can set up KDM through systemsettings (the KDE configuration 
 tool).

 You may lose some GNOME integration though (e.g. fast user switching),
 because obviously KDM was primarily designed for KDE.
>>> 
>>> +1 for KDM
>>>
>>> I've been able to edit themes rather simply and get some nice custom
>>> login screens and company backgrounds.
>>>
>>> Craig

Thanks Tom:)
> You should be fine.   Adding a pseudo user with a UID less
> than 500 and greater than 100 is fine.  Even smolt and pulseaudio does
> it.
> 
> As for top posting... that can cause you much more pain.
PS It was kinda 'cause it was a new post really...


-- 
Getting errors: "There are problems with the signature" (or similar)?
Update your system by installing certificates from CAcert Inc, see here:
http://wiki.cacert.org/wiki/BrowserClients?#head-259758ec5ba51c5205cfb179cf60e0b54d9e378b
Or, if Internet Explorer is your default browser, simply click this link:
http://www.cacert.org/index.php?id=17

Morgan Read
NEW ZEALAND


fedora + freedom; fact || fiction?
http://fedoraproject.org/wiki/Overview
get freed-ora!
http://www.fsfla.org/svnwiki/selibre/linux-libre/freed-ora

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: Why is uid/gid 350 bad? [WAS: Re: f10 gdm user hide]

2009-01-25 Thread Nifty Fedora Mitch
On Sun, Jan 25, 2009 at 10:29:39PM +1300, Morgan Read wrote:
> 
> Hi Folks
> 
> I've just set up a user account for our scanner - no the scanner will
> never login at GDM (will ftp in).  So, after much gnashing of teeth,
> I've given it a uid/gid of 350 so that it doesn't show up in the GDM
> login (it seem the only way to hid a user account is to give it a
> uid/gid below 500).  How long before this rash move turns my machine
> into a smoking pile of ash?
> 
> Thanks all,
> Morgan.
> 
> On 13/12/08 14:21, Craig White wrote:
> > On Sat, 2008-12-13 at 02:03 +0100, Kevin Kofler wrote:
> >> Frank Cox wrote:
> >>> Is there any way to remove a user's name from the list on the initial gdm
> >>> login screen?
> >>> Related:  Is there a way to reorganize the names?  For example, if the
> >>> list has Fred at the top and Sally under that, can the order be reversed
> >>> so Sally is on top?
> >>> Scaling back my question again, does anyone know how to set the default
> >>> username that is initially selected when gdm starts?  So if it's Fred's
> >>> machine he doesn't always have to move the pointer off of Sally first
> >>> before he logs in.
> >> I'd suggest trying KDM, which can actually be configured.
> >>
> >> su -
> >> yum install kdebase-workspace
> >> echo 'DISPLAYMANAGER="KDE"' >/etc/sysconfig/desktop
> >> reboot
> >>
> >> (That's really "KDE" there, not "KDM".)
> >> If you want to make sure GNOME is the default desktop, you can add:
> >> echo 'DESKTOP="GNOME"' >>/etc/sysconfig/desktop
> >> Likewise, DESKTOP="KDE" makes KDE the systemwide default.
> >>
> >> Then you can set up KDM through systemsettings (the KDE configuration 
> >> tool).
> >>
> >> You may lose some GNOME integration though (e.g. fast user switching),
> >> because obviously KDM was primarily designed for KDE.
> > 
> > +1 for KDM
> > 
> > I've been able to edit themes rather simply and get some nice custom
> > login screens and company backgrounds.
> > 
> > Craig
> 

You should be fine.   Adding a pseudo user with a UID less
than 500 and greater than 100 is fine.  Even smolt and pulseaudio does
it.

As for top posting... that can cause you much more pain.


-- 
Regards,
T o m   M i t c h e l l

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Why is uid/gid 350 bad? [WAS: Re: f10 gdm user hide]

2009-01-25 Thread Morgan Read
Hi Folks

I've just set up a user account for our scanner - no the scanner will
never login at GDM (will ftp in).  So, after much gnashing of teeth,
I've given it a uid/gid of 350 so that it doesn't show up in the GDM
login (it seem the only way to hid a user account is to give it a
uid/gid below 500).  How long before this rash move turns my machine
into a smoking pile of ash?

Thanks all,
Morgan.

On 13/12/08 14:21, Craig White wrote:
> On Sat, 2008-12-13 at 02:03 +0100, Kevin Kofler wrote:
>> Frank Cox wrote:
>>> Is there any way to remove a user's name from the list on the initial gdm
>>> login screen?
>>> Related:  Is there a way to reorganize the names?  For example, if the
>>> list has Fred at the top and Sally under that, can the order be reversed
>>> so Sally is on top?
>>> Scaling back my question again, does anyone know how to set the default
>>> username that is initially selected when gdm starts?  So if it's Fred's
>>> machine he doesn't always have to move the pointer off of Sally first
>>> before he logs in.
>> I'd suggest trying KDM, which can actually be configured.
>>
>> su -
>> yum install kdebase-workspace
>> echo 'DISPLAYMANAGER="KDE"' >/etc/sysconfig/desktop
>> reboot
>>
>> (That's really "KDE" there, not "KDM".)
>> If you want to make sure GNOME is the default desktop, you can add:
>> echo 'DESKTOP="GNOME"' >>/etc/sysconfig/desktop
>> Likewise, DESKTOP="KDE" makes KDE the systemwide default.
>>
>> Then you can set up KDM through systemsettings (the KDE configuration tool).
>>
>> You may lose some GNOME integration though (e.g. fast user switching),
>> because obviously KDM was primarily designed for KDE.
> 
> +1 for KDM
> 
> I've been able to edit themes rather simply and get some nice custom
> login screens and company backgrounds.
> 
> Craig
> 


-- 
Getting errors: "There are problems with the signature" (or similar)?
Update your system by installing certificates from CAcert Inc, see here:
http://wiki.cacert.org/wiki/BrowserClients?#head-259758ec5ba51c5205cfb179cf60e0b54d9e378b
Or, if Internet Explorer is your default browser, simply click this link:
http://www.cacert.org/index.php?id=17

Morgan Read
NEW ZEALAND


fedora + freedom; fact || fiction?
http://fedoraproject.org/wiki/Overview
get freed-ora!
http://www.fsfla.org/svnwiki/selibre/linux-libre/freed-ora

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: f10 gdm user hide

2008-12-12 Thread Craig White
On Sat, 2008-12-13 at 02:03 +0100, Kevin Kofler wrote:
> Frank Cox wrote:
> > Is there any way to remove a user's name from the list on the initial gdm
> > login screen?
> 
> > Related:  Is there a way to reorganize the names?  For example, if the
> > list has Fred at the top and Sally under that, can the order be reversed
> > so Sally is on top?
> 
> > Scaling back my question again, does anyone know how to set the default
> > username that is initially selected when gdm starts?  So if it's Fred's
> > machine he doesn't always have to move the pointer off of Sally first
> > before he logs in.
> 
> I'd suggest trying KDM, which can actually be configured.
> 
> su -
> yum install kdebase-workspace
> echo 'DISPLAYMANAGER="KDE"' >/etc/sysconfig/desktop
> reboot
> 
> (That's really "KDE" there, not "KDM".)
> If you want to make sure GNOME is the default desktop, you can add:
> echo 'DESKTOP="GNOME"' >>/etc/sysconfig/desktop
> Likewise, DESKTOP="KDE" makes KDE the systemwide default.
> 
> Then you can set up KDM through systemsettings (the KDE configuration tool).
> 
> You may lose some GNOME integration though (e.g. fast user switching),
> because obviously KDM was primarily designed for KDE.

+1 for KDM

I've been able to edit themes rather simply and get some nice custom
login screens and company backgrounds.

Craig

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: f10 gdm user hide

2008-12-12 Thread Kevin Kofler
Frank Cox wrote:
> Is there any way to remove a user's name from the list on the initial gdm
> login screen?

> Related:  Is there a way to reorganize the names?  For example, if the
> list has Fred at the top and Sally under that, can the order be reversed
> so Sally is on top?

> Scaling back my question again, does anyone know how to set the default
> username that is initially selected when gdm starts?  So if it's Fred's
> machine he doesn't always have to move the pointer off of Sally first
> before he logs in.

I'd suggest trying KDM, which can actually be configured.

su -
yum install kdebase-workspace
echo 'DISPLAYMANAGER="KDE"' >/etc/sysconfig/desktop
reboot

(That's really "KDE" there, not "KDM".)
If you want to make sure GNOME is the default desktop, you can add:
echo 'DESKTOP="GNOME"' >>/etc/sysconfig/desktop
Likewise, DESKTOP="KDE" makes KDE the systemwide default.

Then you can set up KDM through systemsettings (the KDE configuration tool).

You may lose some GNOME integration though (e.g. fast user switching),
because obviously KDM was primarily designed for KDE.

Kevin Kofler

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: f10 gdm user hide

2008-12-12 Thread Frank Cox
On Fri, 12 Dec 2008 11:58:50 -0600
Frank Cox wrote:

> I don't have that.  My System-Administration menu goes right from "Logical
> volume management" to "Network".  What program does 
> System-Administration-Login
> Window-Users run?

Turns out to have been a false alarm.  Mikkel was looking at a F8 machine,
which has gdmsetup and, of course, F9 and F10 don't.

Scaling back my question again, does anyone know how to set the default
username that is initially selected when gdm starts?  So if it's Fred's machine
he doesn't always have to move the pointer off of Sally first before he logs
in.

-- 
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com
DRY CLEANER BUSINESS FOR SALE ~ http://www.canadadrycleanerforsale.com

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: f10 gdm user hide

2008-12-12 Thread Frank Cox
On Fri, 12 Dec 2008 08:28:45 -0600
Mikkel L. Ellertson wrote:

> I don't know how to sort them - it looks like they are by uid. But
> to select what users are displayed, try System --> Administration
> --> Login Window --> Users.

I don't have that.  My System-Administration menu goes right from "Logical
volume management" to "Network".  What program does System-Administration-Login
Window-Users run?

-- 
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com
DRY CLEANER BUSINESS FOR SALE ~ http://www.canadadrycleanerforsale.com

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: f10 gdm user hide

2008-12-12 Thread Mikkel L. Ellertson
Frank Cox wrote:
> Is there any way to remove a user's name from the list on the initial gdm 
> login
> screen?
> 
> Related:  Is there a way to reorganize the names?  For example, if the list 
> has
> Fred at the top and Sally under that, can the order be reversed so Sally is on
> top?
> 
I don't know how to sort them - it looks like they are by uid. But
to select what users are displayed, try System --> Administration
--> Login Window --> Users.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!



signature.asc
Description: OpenPGP digital signature
-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Re: f10 gdm user hide

2008-12-12 Thread iarly selbir
I want too know the answer for this question.

I tried solve this for long time, but I couldn't.

:)


Regards,

- -
iarly selbir ( Ski0s )



On Fri, Dec 12, 2008 at 5:40 AM, Frank Cox  wrote:

> Is there any way to remove a user's name from the list on the initial gdm
> login
> screen?
>
> Related:  Is there a way to reorganize the names?  For example, if the list
> has
> Fred at the top and Sally under that, can the order be reversed so Sally is
> on
> top?
>
> --
> MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com
> DRY CLEANER BUSINESS FOR SALE ~ http://www.canadadrycleanerforsale.com
>
> --
> fedora-list mailing list
> fedora-list@redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
> Guidelines:
> http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
>
-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines