[SOLVED] [Python] how do you close a file ulimit problem
location: ubuntuforums.com - date: September 14, 2008
It appears I can only write to 1019 files before my python script poops out.
Here is the program
#!/usr/bin/env pythonimport sysimport osimport tempfilefor idx in range(1025): outsock_path=tempfile.mkstemp() print "%(outsock_path)s"%locals() try: outsock=open(outsock_path,'w') except IOError,err: print "IOError:",err print "Cannot write to %(outsock_path)s"%locals() print "idx=%(idx)s"%locals() sys.exit(1) finally: outsock.close() os.remove(outsock_
[SOLVED] Ubuntu: How do you give sftp root privilege to user?
location: linuxquestions.com - date: September 18, 2010
This is my first thread ever to make on the linux forum, and I just began using linux Ubuntu Lucid for my server.
Please bare with me because I think I am questioning such a basic question.
How do you give sftp root privilege to user?
I've made group "admin" and made 2 users under that group.
Trying to upload a file onto a server using SFTP with one of the user and it fails and says "Permission denied."
I gave full sudo/root permission to the group "admin" from /usr/sbin/visudo
I mainly use Tranmit4 but I also have filezilla.
Or is there a way to run sudo command on either ftp client application?
Thank you all!
How do you close "smtp port 25"..?
location: ubuntuforums.com - date: August 18, 2009
"Shields-Up" security test website found "SMTP port-25" open, in one of my scrapper carefree/careless surfing hd's...
Why would port-25 be open..?
How do I close port-25 permanently, given that I don't have Evolution set-up for emails..? I use only freebie outside email accounts, namely Fastmail and Yahoo...
<SOLVED> How do you remove old linux packages?
location: ubuntuforums.com - date: August 12, 2009
installer gives an error saying my /boot partition is short on space, and I found this thread discussing the problem/ solution, but it does not give the details...
Re: Gusty Gibbon upgrade problem re /boot free space
It turns out that you can't delete old kernels manually. You have to delete them through apt-get. So remove all your old linx-image packages and you should be all set the next time you upgrade.
In my particular situation I installed the CD Hardy 08.04, upgraded to Intrepedid 08.10, and now that I want to upgrade to 09.04 I received this error message:
The upgrade is now aborted. The upgrade needs a total of 1204M free space on disk '/'. Please free at least an additional 840M of disk space on '/'. Empty your trash and remove temporary packages of former installations using 'sudo apt-get clean'.
and then after cleaning-up, and running an autoremove command, I got:
how do you grant file operation permissions by command line?
location: ubuntuforums.com - date: December 20, 2011
I'm using WinSCP to try to update some files on Ubuntu but I don't have permission to overwrite. What command can I use to grant access? Thanks.
[SOLVED] postfix how do you redirect all emails to one user in same domain
- date: December 23, 2011
i am newbie for this domain
I'm using postfix for my email. I know I can use /etc/aliases and newaliases command to redirect certain email,
eg: I can redirect [email protected]
to [email protected]
by putting root: user in my /etc/aliases and then running newaliases.
However I'd like to do the equivilant of *: user, so that all email to example.com will get sent to [email protected]
also only that [email protected]
get copy of all emails.
How do you close port 22 SSH?
location: linuxquestions.com - date: March 16, 2004
I'm trying to secure my box and so far i've shut down ports in /etc/rc.inet1.conf that i don't use. When i run nmap it says port 22 ssh is open. How do i close this port other than a firewall rule? I looked in the /etc/rc.d directory, but can't figure out how you shut it off. I googled and read that it is to be disabled in /etc/rc.config, but i don't have an rc.config. I have a rc.inetd1.conf where i commented out the other ports i have no use for, but ssh isn't in there. There is a rc.sshd, but i don't see an option to disable it there either.
[SOLVED] rkhunter: How do you disable the Apache version check?
location: linuxquestions.com - date: November 1, 2014
I am using rkhunter on CentOS 6.5. It keeps giving this warning.
In Python, how do you determine whether the kernel is running in 32bit or 64bit mode?
location: linuxexchange.com - date: August 23, 2011
I'm running python 2.6 on Linux, Mac OS, and Windows, and need to determine whether the kernel is running in 32-bit or 64-bit mode. Is there an easy way to do this?
I've looked at platform.machine(), but this doesn't work properly on Windows.
I've also looked at platform.architecture(), and this doesn't work when running 32-bit python on 64-bit Windows.
Note: It looks like python 2.7 has a fix that makes platform.architecture() work correctly. Unfortunately, I need to use python 2.6 (at least for now).
(edit: From talking to folks off-line, it sounds like there probably isn't a robust python-only way to make this determination without resorting to evil hacks. I'm just curious what evil hacks folks have used in their projects that use python 2.6. For example, on Windows it may be necessary to look at the PROCESSOR_ARCHITEW6432 environment variable and check for AMD64)
Python: How do you stop numpy from multithreading?
location: linuxexchange.com - date: June 13, 2013
I know this might seem like a ridiculous question, but I have to run jobs on a regular basis on compute servers that I share with others in the department and when I start 10 jobs, I really would like it to just take 10 cores and not more; I don't care if it takes a bit longer with a single core per run: I just don't want it to encroach on the others' territory, which would require me to renice the jobs and so on. I just want to have 10 solid cores and that's all.
More specifically, I am using Enthought 7.3-1 on Redhat, which is based on Python 2.7.3 and numpy 1.6.1, but the question is more general. I've been googling for some kind of an answer to this question for hours to no avail, so if someone knows of a switch in numpy that could turn off the multi-threading, please let me know.
Page: 1 2 3 4 5 6 7 8 9 10