Debian :: Moving Tasks Between Process Groups (cgroup/cpuset)?
Feb 4, 2011
ive played around with cpusets and now have some processes that cant be moved to the main group /dev/cgroup/tasks. echo pidinquestion >/dev/cgroup/tasks results in:
bash: echo: write error: Invalid argument. how can i move these tasks? or remove the process group alltogether, rm -r is not working. permission denied?
If I have Dolphin up and running, I will activate a folder, hit Enter, and nothing happens unless my mouse is moving around the screen.I may have Chromium Browser or Firefox running with another app, and when I use Alt-Tab to switch tasks, the app selector window will not appear unless I'm moving the cursor. And once I have chosen the app to switch to, it will not actually make the switch unless the cursor is in motion across the screen.I am running Kubuntu 10.04, KDE 4.4.2
Unfortunately the setuid() function from unistd.h does not effect the supplementary group ids of the process. Is there a way to set them directly? Even better, is there a setuid() equivalent which also sets the process's supplementary gid's to match the user's?
I already know of a work around to fix this problem, but I guess my question is why is this not working as expected? I am using a Windows Server 2008 R2 Active Directory for authentication.
I have run auth-client-config for the ldap profile and pam-auth-update. When running getent passwd, I get a list of both the local users and the users in the active directory (with populated information in the Unix schema extension). When running getent group I get a list of both the local groups and the groups in the active directory (with populated information in the Unix schema extension).
Interestingly enough, though, when I run su DOMAINUSER, after the prompt for the password I get an authentication error. In /var/log/auth.log I can see an entry with pam_ldap: missing "host" in file "/etc/ldap.conf". The SRV records in the DNS servers resolve correctly. I've checked this with nslookup and I have seen the records within my zone file. Obviously if the ldap.conf file is working with getent and the ldap server is resolving from the SRV records, it is working fine.
The interesting part is that the Windows Server 2008 R2 AD machine shows in the event viewer that there was a successful authentication, yet the Ubuntu box says no. When I add the host within the ldap.conf file, everything works...getent and the actual authentication, either initial login or su.
I am currently trying to set up a Samba domain server. In the Samba-HOWTO-Collection I found an example file.(Point 3.3.3.1) In the explanations of the example below, the author says I need to map UNIX Groups to NT Groups. He writes a shell-script of how one could do it, but when I copy it and then execute it, I get the error:
Bad option: rid=512 Bad option: rid=513 Bad option: rid=514
The other groups do get mapped, just the Domain Admins, Domain Users and Domain Guests dont. This is the shell from the HOWTO:
#!/bin/bash #### Shell-Skript f ̈r sp ̈tere Verwendung aufbewahren net groupmap modify ntgroup="Domain Admins" unixgroup=ntadmins rid=512 net groupmap modify ntgroup="Domain Users" unixgroup=users rid=513 net groupmap modify ntgroup="Domain Guests" unixgroup=nobody rid=514
So i am at the stage of about to install the basic system and am using a derivation of the package management provided by Matthias S. Benkmann. To this end I am using his useradd and groupadd scripts to update the files:
/etc/passwd /etc/group
My issue is that when I run the commands(created as part of temporary system when installing coreutils):
Code:
/tools/bin/su linux #then as user /tools/bin/groups
(here linux is the name of the user) This only returns the user being in the group named after user but not the additional group of 'install' Also, prior to logging in as user, if I use this command as root:
Code:
/tools/bin/groups linux
linux install This then returns that the user is in the correct groups. Lines from relevant files look like:
Over the past few days, I've noticed that administrative tasks sometimes fail to start. I'm asked to enter the administrative password, "Granting rights" appears in the bottom panel for a few seconds, but then disappears. I'm using Debian Lenny. This is only an intermittent problem, and if a task does fail to start, it will start on the next attempt. Tasks which have failed to start are:
*Launching Synaptic form the System menu. *Launching a root terminal from the Applications menu. *Launching Nautilus with root privileges from a terminal using gksu.
After coming across the following post, I thought maybe it was an issue with kernel 2.6.32-bpo.5-686, because I'd recently upgraded to that kernel too, but I'm advised that that isn't so.It was suggested that something else from backports might be causing the problem.
As I have developed a part of my project based on crontab and now one of my team member has raised a question based on performance and load/stress, I would like to know the following limits of crontab.I assume each line in crontab file is a task; and also crontab would hold completed and pending tasks.1. How many tasks (both completed and pending) could crontab hold/handle?2. Will crontab run as expected if there are 100s of completed and less than 100 pending task?
Im running a Debian 2.6.26-2-amd64 webserver with apache2 only on a Intel(R) Core(TM)2 Duo CPU E4500 @ 2.20GHz that has 2GB of ram in it. I installed htop a few days ago and have been looking on it for a few days now. the server idles on about 80~ish tasks constantly with arond 20 apache tasks/connections to it all the time and the cpu usages of the 2 cores at about 1% each. but asoon as more apache2 connections/task get started and the servers tasks reach 120-140~ Apache2 timesout if you try to go to the webpage i host on the server. when it's back down to around 80~tasks you can reach the webpage once again. why is this ? what's causing this to happen ?
I have fedora 10 and it has been working fine for over 6 months. Today I did the system update. After the update, I rebooted the system. Now, it hangs displaying the message "Not cloning cgroup for unused subsystem ns".
I am used to setting up users and groups on my daughters computers with Ubuntu installed. user: magz (daughter) user: nigel (me) group: nima
We each have our own folder for files i.e. magz and nige. This has always worked well and it didn't matter which user is logged in we could create and access files in the other users folder with full permissions. root@nbsq: /media/2xfi/files# ls -l total 8 drwxrwxr-x 9 nigel nima 4096 Jul 13 09:45 magz drwxrwxr-x 3 nigel nima 4096 Jul 13 09:45 nige
I have finally got around to getting her to try Debian which I always use, however I have never had to set up users, groups etc in Debian (squeeze) so I just did what I'm used to with Ubuntu. What I've found is that if I create a folder while I am logged in then that folder cannot be accessed by my daughter when she is logged in and the same applies if she creates a folder then I cannot access it when I am logged in, unless of course I use terminal to change the owners. In each case with the new folder the owner will be: root and the group will be: root. I would have thought what works for Ubuntu would work for Debian, however there must be differences.
I have a folder, called Vault, that we want to share only with certain people. Because it will contain confidential information.
I want the unix group trustees to have read-only access I want the unix group administrators (and root) to have read/write access
All other users should have no access.
the implementation I have so far is: folder owner: root:administrators folder permissions: 770 section from smb.conf
[Code]....
However, this is not working as expected. It currently works as follows:
Normal user: No access (expected) Trustees member: No access (fail. Trustees should be able to read) Administrators member: Read/write access (expected)
I would like to ask:How do I setup LDAP auth of users/groups on Debian 5.0?Is it using LDAP Migration tools? Can be done differently? Using different tool? Some nice tootorial?Some up to date book for LDAP or I need to dig in openldap.org?I'm learning by book which is a lil bit older so Im bit confused.
I have been learning Debian by using a virtual machine. After fine-tuning my installation procedure, I decided to copy that installation to my physical system. The hard drive already has another Linux based system installed. I plan to dual boot.After copying files I updated fstab and menu.lst.The partition scheme between the virtual and physical environments are similar, but the partitions are not mapped exactly the same.Thus the Debian system on the physical hard drive fails to boot simply because the initrd is created for the root partition location on the virtual machine. The initrd created in the virtual machine is looking for the root file system on /dev/hda1 whereas on my physical drive the new location is /dev/sda7.How can I rebuild the initrd on the physical system? I started to use the installation DVD in rescue mode, but I did not get too far.
I have been learning Debian by using a virtual machine. After fine-tuning my installation procedure, I decided to copy that installation to my physical system. The hard drive already has another Linux based system installed. I plan to dual boot.After copying files I updated fstab and menu.lst.
The partition scheme between the virtual and physical environments are similar, but the partitions are not mapped exactly the same.Thus the Debian system on the physical hard drive fails to boot. I think the initrd created in the virtual machine is looking for the root file system on /dev/hda1 whereas on my physical drive the new location is /dev/sda7.How can I rebuild the initrd on the physical system? Or how can I build an initrd in the virtual system that will function on the physical system.I started to use the installation DVD in rescue mode, but I did not get too far.
I have installed fedora 11, now i want to install touch driver for my dell 15 laptop. when i m moving cursur its moving but when i m clcking on touch pad to open anything its not opening, to open i have 2 select any file then i have to click touchpad keys.
i seem to be having some issues with update-manager. all has been well for months since i installed etch. now, when i try to do an update, i get the error message :
W: Unbalanced action groups, expect badness [CRITICAL:UpdateManager.Backend.PythonApt] BrokenCount > 0 (1)! not sure where to go from here, i trawled some forums for an answer and tried : sudo dpkg --clear-avail && sudo apt-get update and : sudo rm /var/lib/dpkg/available to no avail. here's a copy of my sources.list just in case [URL]
Why do I have an empty directory in the top of my filesystem labeled "cgroup" that goes by the file context above?And why does it apply to all files "/cgroup(/.*)?" as per a fcontext search?Did something break or is this the result of a new update?
Code: mkdir: cannot create directory `/dev/cgroup/cpu/user/5900': No such file or directory bash: /dev/cgroup/cpu/user/5900/tasks: No such file or directory bash: /dev/cgroup/cpu/user/5900/notify_on_release: No such file or directory It seems like it's probably from this part of .bashrc:
[Code]...
What does this code do, why, and what's causing it to go wrong?
I am running Debian (Lenny) as my file server on a Windows network. I have multiple users accessing shared excel worksheets. I am the owner of these files and have no problem but if I save a shared workbook the file properties on the Linux server change ''Groups - Read Only, Others - Read Only''. I can reset them logged in as root but they change back every time I save the file from the XP machine (XP Home SP3). All other non-shared worksheets are fine.
I like the buttons on the left. I'm running 10.04 & I know how to move them. The problem is that changing themes will move them back right. OK, if the new theme has them on the right that's OK. But going back to the other theme doesn't change them back. They don't seem to be controlled by the theme, or I'm just not doing it right.
I've installed years back Debian on my laptop. Last year i did upgrade, i putted an ssd in my old laptop which works great with debian.
Now I bought a new laptop, to replace my old one. Because my new laptop doesn't have an SSD installed, i want to replace the harddrive by the SSD from my old laptop.
Now so said, so done. I replaced the hard drive easy by the ssd. Now if i boot the new laptop with the ssd installed i'm getting message from EUFI/BIOS that there is no OS installed on the ssd???
Debian is installed on it! If a place back the ssd in my old laptop, it's booting like it should, so it's working. Why is EUFI/BIOS think there is no OS installed? Debian is installed on the ssd so it should work i think?
I was looking around in Xfce4 Taskmanager to see what's taking up some memory/processor power, and I noticed when I move the cursor around in cirlces, the CPU spikes from about 5%-10% clear up to about 40%. I also have Audacious2, Chromium, and a file manager open as well.
Why is this? My system is an Eee PC with a 1.6GHz Atom processor and 2GB of DDR2 RAM.
I recently installed Debian (*former Windows user*) with xfce and I only aligned one partition. I have a 80gb SSD where I have the OS and apps. I just now installed a hard drive which I'm going to use for documents, pictures, music etc., but I haven't mounted it yet. I'd like to move /home to it's own partition on the second drive, and I'd like the desktop to be on the HDD also, but I don't really have any idea how to do this and haven't found any information about this (that's why I haven't mounted the HDD yet either). I'd like to keep the SSD purely as a drive for OS and apps so if there's anything else I should consider or if there's a better approach for this?
I'm running Debian Wheezy on a Dell XPS M1530 laptop, 64-bit.
I'm having a boot problem after moving my /usr directory out of the root partition and into its own partition.
I followed the "easy way" here: [url]
Basically, I moved the contents of /usr to a new partition -- renamed /usr in root to /oldusr -- and edited fstab and tried to reboot... but the boot process wasn't able to find the new /usr.
After using /dev/sda7 in fstab (to no success) I ran blkid to find the UUID and used that (again, to no success).
My fstab is below:
For what it's worth, grub is also looking different -- none of the debian backgrounds that were there previously remain. While it lists the same kernels to boot into the boot (as described above) fails.
I'm wondering I've read in some places that if people would like to move from a stable branch of Debian to the testing you can usually just replace the lines in sources.list with the testing release and update and then dist-upgrade. Is this true...and if so is it safe?
My Debian Lenny box has two hard drives: a smaller one, upon which I installed the system and a 500GB drive which, during installation, I assigned for mounting as the "/home" directory. A few days ago, the smaller (system) hard drive crashed. Although fsck was able to make the drive mountable again, many system files (esp. things like inittab) were lost.
Since the machine, itself, had actually been pretty old when I first installed Debian (Etch, originally), I am going to be replacing it with a new system and I have a few questions about getting this all done.
First of all, the old computer was a Pentium 4 and the new one is a Dual-core, 64-bit Pentium (E6600) with 4GB RAM and a 500GB SATA drive. I'd like to install 64-bit Debian Squeeze onto that drive and, since I've never used the 64-bit Debian before, would like to know if there are any pitfalls or caveats - especially any dire reasons I should stick with 32 bits, instead.
Next, I would like to keep the other 500GB (IDE) drive mounted on "/home" so that my things would be where they already were on the old system - especially files relating to Iceweasel and Icedove. Of course, there are no binaries on that drive, since I had all of that on the drive that crashed, but are there any other things I must take into consideration? Also, what would be the best way to make that drive "/home" during the new installation without wiping it out, but having it ready for when I create the users so I can point them to their appropriate directories?
Finally, since the old computer had been an Etch system that had been upgraded to Lenny and since I would be installing Squeeze (and, likely, the 64-bit Squeeze, at that) onto the new system, would there be any problems with the above scenario, considering the potential of older configuration files, etc. on the old "/home" drive?
My subject line says, "Updating while moving to new machine," but these really may not be "update" questions, per se. Then again, the presence of that old hard drive does introduce some update-like elements into the equation, and that is why I am asking these questions.