CentOS 5 :: Centos-approved Way To Handle Group Environment Configuration?
Mar 10, 2010
What's the centos-approved way to handle group environment configuration? Let's say there are users in, oh, 4 different groups. Let's use the usual suspects:
accounting
warehouse
admin
netadmin
and I want to set up environment variables and maybe some pathing that are specific to a given group. So that when 'joeblow', who is a member of group 'warehouse', logs in, the pathing and environment variables (and whatever else) that is needed for users in the 'warehouse' group is set up and configured.
What I was initially looking for was an /etc/groups.d, and in /etc/groups.d is
As part of the login process, the group memberships for the login username would be examined, and for each hit the respective /etc/groups.d/ script would be run. I'm not seeing anything like that, so I'm assuming centos uses some other mechanism, but I'm obviously not using the proper keyword mojo. Can someone point me to where this mechanism is described?
I am thinking about installing rsyslog using yum, but I only want to try it out first and don't want to create conflicts and problems that will be hard to revert. When I ask yum on CentOS 5 about rsyslog, I get this (note much older version - it's too bad that even the latest STABLE rsyslog isn't in the repository):
Here's the text from the serial console before I rebooted:
BUG: unable to handle kernel paging request at ffff8140320234b8 IP: [<ffffffff802b0a13>] dentry_iput+0x26/0x9d PGD 8063 PUD 0
[code]....
My root server is using CentOS release 5.2 (Final), kernel 2.6.26.5-rootserver-20080917a, SMP, 64-bit This Oops happened yesterday and before that it happened on March 14th of this year, and before that on January 31st of this year, so a repeating pattern. On the January 31st Oops, I just rebooted. On the March 14th Oops, I reformatted the two swap partitions as follows: mkswap -c /dev/sda2; mkswap -c /dev/sdb2 On this last Oops, I turned off the swap for 24-hours, then decided to turn it on again after doing the above mkswap again. During the previous uptime, I had dumpcap packet capture running, but this last reboot, I'm not going to run it.
We are having some problems in running CentOS 5.3 in our ESXi 3.5 environment. The virtual machine is running perfectly under VMWare Player, but when I converted it to ESXi using VMWare vCenter Converter 4.0.0, the CentOS often goes into a panic right at the start of stops when setting up the hostname.
chmod -R g+s example and then chmdo -R 750 example
And have the directory and all sub-directories preserve the set-group-ID. On CentOS SGID gets overridden by the second command.The OS is CentOS release 5.6 (Final)In theory, and like it says on this page, "if commands like chmod routinely cleared these bits on directories, the mechanisms would be less convenient..." and it's exactly whats happening. chmod -R 750 is effectivelly removing the SGID.How can I make g+s permanent?
I have to set up a box which can manage all the logins in our company and has the feature to manage every possible permission with as much comfort as possible. We are using Linux and AIX therefore my Boss is willing to switch from our Windows DC to a Linux DC. And here lies the problem, I don't really know what is needed to set the Box up to manage the Unix, Samba and LDAP accounts with one tool maybe?
I would like to know which Software exactly is needed and how to manage to get the thing to work together with a security aspect. I configured a Samba DC with LDAP, Kerberos and TLS but it looks like I overdid it because Kerberos is not able to manage the things we need in a manner that the other Admins in my Company would get things done in a short time.
Therefore I would like to get listed all the Software needed and maybe some How Tos how to get thing working, because I am losing my nerves on this matter. In the last 3 weeks I have set up several test boxes but every time something doesn't work. My biggest Problem is to get Samba and LDAP to work together with TLS or another security scenario.
Before creating this topic I googled a lot and found lots of forum topics and blog posts with similar problem. But that did not help me to fix it. So, I decided to describe it here. I have a virtual machine with CentOS 5.5 and it was working like a charm. But then I turned it off to make a backup copy of this virtual machine and after that it has a boot problem. If I just turn it on, it shows the following error message:
Activating logical volumes Volume group "VolGroup00" not found Trying to resume from /dev/VolGroup00/LogVol01 Unable to access resume device (/dev/VolGroup00/LogVol01) ... Kernel panic ...! During the reboot I can see 3 kernels and if I select the 2nd one the virtual machine starts fine, it founds the volume group etc. (But there is also a problem - it can not connect the network adapters.) So, it is not possible to boot it with the newest kernel (2.6.18-194.17.1.el5), but it is possible with an older one (2.6.18-194.11...)
I looked into GRUB's menu.lst and it seems to be fine. I also tried #mkinitrd /boot/initrd-2.6.18-92.el5.img 2.6.18-92.el5 no luck! Yes, I can insert DVD .iso and boot from it in "linux rescue" mode.
I'm trying to do a disk upgrade on some servers. They are using LVM with DRBD on top and each LVM volume contains a Xen image. I have already created identical volumes on another volume group, copied the data and pointed DRBD to the new source (Which seems to have worked).
What I am unsure of is how to safely remove the disks. The disks are an Areca Raid 1 array and support hotswap. Can I just pull them out of the machine or is some sort of command needed to tell LVM or the kernel to disconnect from the physical array device? Is removing the raid array from the Areca management GUI first a good idea?
I have setup samba and shared /var/www/html on a shared folder so that i can access the folder directly via my IDE, however i cannor write file in there, is there any better way of doing it ?
I have a PC connected by ethernet to a Galil motion controller card.I recently installed Centos 5.The Galil software for communicating with the card is reporting that it can't join a multicast socket group.The software used to work with another version of Linux.
I've installed Directory Server (LDAP). The setup has been done according to the tutorials online. Able to access the interface as well. So far so good. The issue I have is with permissions. I can assign file permissions to a user created in the Directory Server ( user not created on the local server). But the same can't be done for a group - alteast the way I currently see it. How could i assign file system rights to a group created in the directory server.
I've several servers (windows+linux) that authenticate to an LDAP server. There is one machine that I would like to allow only certain groups from LDAP server to have access and I am not sure where to start.
If that cannot be done, is it possible to disable LDAP root user to access these machines?
I have to create a script that will run only for a specific group. It is a very simple script, so to map the folder, it happens that only that group will be mapped folder. Look what I've done:
[Code]...
Corded that way, but can not be this way, the folder must be mapped to only one group, i have to do scripts for other users, groups, and a script for everyone.
I have a server running CentOS 5.5 with KVM capabilities. I need to migrate all the VMs to another server with the exact same hardware specs. The problem is it is running on individual harddisks, not shared storage. What is the best way to migrate to minimise downtime?
I am running CentOS-5x as guest OS in VMware workstation environment. Till, yesterday everything was fine... Today, when i start up I don't see the Desktop coming up, may be the GDM is failing in some way ( guess though). Xserver is working, coz I could see xclock/xyes are loading, also i have checked /etc/inittab, runlevel is set to 5. I did not see any entry in /etc/sysconfig/desktop, thus it shows DESKTOP="" I tried to change it to DESKTOP="GNOME", but it has not worked.
I have successfully installed XAMPP on CentOS. I can access PHPMyadmin from my browser. So my mySQL installation is OK. I need to set Environment Variable. I am confused about the path directory.
For an example in windows the path was:
%MYSQL_HOME% -------> C:xamppmysql
What will be the path for CentOS $MYSQL_HOME? Under LAMPP folder I did not see the "mysql" folder
i just want to prevent from now on from all users maybe even root from adding other users to groups like wheel for example. I also want to know how can I prevent from all users to create new groups or add users to new one.real
I have recently installed CentOS 5.3 in my system. I needed some help with the wireless configuration. Actually i have configured it and it shows the wireless name but it doesnt connect to it. in solving the issue.In the /var/log/messages , the following error appears :
I have been a RPM-based distribution guy for a long time (redhat,centos,suse). We have a large shared and dedicated web environment that is starting to require more and more linux. I am in a position to switch gears and move to ubuntu if it makes sense. Things that are important to me are:
1. ease of deployment (both servers and websites themselves) 2. patch management 3. documentation
Is there a way to create a high availability environment between two CentOS machines? I don't mean just the HTTP service or just one other thing. I need the entire server synced in real time ready to take over if the next goes down.
OS: Centos 5.5_x86 I've searched quite a bit for how to set up Java environment variables with the newest java JDK. I installed java using the following commands: yum groupinstall "java development" (I need it for the application I am trying to run) yum install "java" I have them both installed however I can't seem to get java to function. The application I am trying to run requires that I set java environment variables any solutions?
what the maximum number of logical volumes is for a volume group in LVM ? Is there any known performance hit for creating a large number of small logical volumes vs a small number of large volumes ?
My problem is that I can't setup a diskless environment with CentOS 5.4 (server) and CentOS 3.9 (hosts). On the host, I've recompiled the CentOS 3.9 kernel, with these mods: - added kernel level IP autoconfiguration; - added NFS file system support; - added Root file system on NFS; - added e1000 driver (the host has a gigabit network card);
Then, I have followed the guide at this link: [URL] But in my dhcpd.conf I'he put other parameters: ddns-update-style interim; allow bootp; allow booting;