LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-09-2010, 02:14 AM   #1
mrconfused786
LQ Newbie
 
Registered: Aug 2010
Posts: 2

Rep: Reputation: 0
unmount with exec permissions


My hosting company said:
You need to unmount the partition with exec permissions, install memcached and re-mount it with no-exec as a security measure.
- I do not know how to do this ?

Thank you.

Problem background:
Code:
[root@server tmp]# pecl install memcache 
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl 
channel-update pecl.php.net" to update 
downloading memcache-2.2.5.tgz ... 
Starting to download memcache-2.2.5.tgz (35,981 bytes) 
..........done: 35,981 bytes 
11 source files, building 
running: phpize 
Configuring for: 
PHP Api Version: 20020918 
Zend Module Api No: 20020429 
Zend Extension Api No: 20050606 
Enable memcache session handler support? [yes] : yes 
building in /var/tmp/pear-build-root/memcache-2.2.5 
running: /root/tmp/pear/memcache/configure --enable-memcache-session=yes 
checking build system type... i686-pc-linux-gnu 
checking host system type... i686-pc-linux-gnu 
checking for egrep... grep -E 
checking for a sed that does not truncate output... /bin/sed 
checking for gcc... gcc 
checking for C compiler default output file name... a.out 
checking whether the C compiler works... configure: error: cannot run C 
compiled programs. 
If you meant to cross compile, use `--host'. 
See `config.log' for more details. 
ERROR: `/root/tmp/pear/memcache/configure --enable-memcache-session=yes' 
failed 
[root@server tmp]#
 
Old 08-09-2010, 02:37 AM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 5.4, Mac OS 10.4 (tiger)
Posts: 1,005

Rep: Reputation: 79
you can set noexec in /etc/fstab for it to be a default as the example below for /tmp. If you need this explained please feel free to ask for an explanation. Once done, just remount or umount then mount the partition. This has further options placed on, also for security reasons.

Code:
LABEL=/tmp              /tmp                    ext3    defaults,rw,nosuid,nodev,noexec         1 2
LABEL=/boot             /boot                   ext3    defaults        1 2
memcached is probably easily installable by your package manager, without knowing what distribution you are using however it is hard to tell you the command you need to run.

I doubt your hosting company said to add options like noexec on every partition however, generally it would be /tmp as this helps prevent against rootkit style of attacks, can you confirm what they advised to you? adding noexec to /, /usr and/or /bin could be very problematic.

Last edited by r3sistance; 08-09-2010 at 02:52 AM. Reason: Request for confirmation
 
Old 08-09-2010, 12:32 PM   #3
mrconfused786
LQ Newbie
 
Registered: Aug 2010
Posts: 2

Original Poster
Rep: Reputation: 0
[root@server ~]# cat /etc/issue
CentOS release 4.8 (Final)

I have included the entire conversation in this paste:
http://pastebin.com/WKwPyGUH

The gyst of it is that I wanted to install memcache and it didn't let me. I was able to but I couldn't get the memcache client installed for php.

I tried using the package installer yum but it failed to install it.
pear install pecl/memcache
Code:
WARNING: channel "pecl.php.net" has updated its protocols, use "pear channel-update pecl.php.net" to update
downloading memcache-2.2.5.tgz ...
Starting to download memcache-2.2.5.tgz (35,981 bytes)
..........done: 35,981 bytes
11 source files, building
running: phpize
Configuring for:
PHP Api Version:         20020918
Zend Module Api No:      20020429
Zend Extension Api No:   20050606
Enable memcache session handler support? [yes] : yes
building in /var/tmp/pear-build-root/memcache-2.2.5
running: /root/tmp/pear/memcache/configure --enable-memcache-session=yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
ERROR: `/root/tmp/pear/memcache/configure --enable-memcache-session=yes' failed
Can you explain in more detail (please) how to mount and mount. I can edit the file you mentioned -/etc/fstab and add the noexec but not sure how to unmount then remount.

Thanks
 
Old 08-09-2010, 12:38 PM   #4
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 5.4, Mac OS 10.4 (tiger)
Posts: 1,005

Rep: Reputation: 79
Assuming say we are dealing with /tmp the mount command to remount is

Code:
mount -o remount,rw /tmp
to unmount you use the command umount

Code:
umount /tmp
and to remount

Code:
mount /tmp
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
exec(), crontab and web permissions va1damar Linux - Newbie 1 02-21-2007 05:55 PM
Backup Exec Permissions issues greencabby Linux - Enterprise 1 02-13-2007 03:46 PM
exec cmd=perl... work but exec cgi doenst crions Slackware 5 12-09-2005 01:17 PM
command 'unmount' not found - how can i unmount??? GloVe Linux - General 1 10-04-2003 07:33 AM
unmount killi Slackware 4 05-11-2003 04:51 PM


All times are GMT -5. The time now is 04:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration