LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-27-2005, 01:37 AM   #1
Caysho
Member
 
Registered: Sep 2002
Location: Perth Australia
Distribution: OpenWRT, debian, Ubuntu
Posts: 135
Blog Entries: 20

Rep: Reputation: 15
unmount lufs only after process is killed


suid is set for some of the lufs files:
Code:
[caysho@petrata caysho]$ ls -la /usr/bin/lufs*
-rwxr-xr-x  1 root root 22744 Jul 19  2004 /usr/bin/lufsd*
-rwsr-sr-x  1 root root  5976 Jul 19  2004 /usr/bin/lufsmnt*
-rwsr-sr-x  1 root root  7320 Jul 19  2004 /usr/bin/lufsmount*
-rwsr-sr-x  1 root root  5592 Jul 19  2004 /usr/bin/lufsumount*
I can mount an ftpfs lufs point ok, my fstab entry:
Code:
none /home/caysho/mage lufs  fs=ftpfs,host=mage,username=,password=,suid,user,noauto,users 0 0
but when I unmount it:
Code:
umount: /home/caysho/mage mount disagrees with the fstab
At this point I haven't entered the directory, but I can list it ok:
Code:
[caysho@petrata caysho]$ ls /home/caysho/mage -la
total 6
drwxr-x---   1 caysho caysho  512 Aug 27 14:24 ./
drwxr-xr-x  73 caysho caysho 4096 Aug 27 14:24 ../
drwxr-xr-x   2 daemon daemon    0 Jan  7  2005 bin/
dr-xr-xr-x   2 daemon daemon    0 Aug 21 00:00 codecs/
drwxr-xr-x   4 daemon daemon    0 Jan  7  2005 dev/
dr-xr-xr-x   5 daemon daemon    0 Jan  7  2005 etc/
drwxrwxrwx   9 daemon daemon 1024 Jan  7  2005 initrd/
drwxr-xr-x   2 daemon daemon    0 Jan  7  2005 lib/
lrwxrwxrwx   1 daemon daemon   15 Jan  7  2005 linuxrc -> ./initrd/linuxrc*
drwxr-xr-x   2 daemon daemon    0 Jan  7  2005 lost+found/
drwxr-xr-x   4 daemon daemon    0 Jan  7  2005 mnt/
dr-xr-xr-x  55 daemon daemon    0 Jan  7  2005 proc/
drwxr-xr-x   2 daemon daemon    0 Jan  7  2005 ramfs/
dr-xr-xr-x   2 daemon daemon    0 Aug 15 00:00 sbin/
drwxr-xr-x  10 daemon daemon    0 Jan  7  2005 sys/
drwxr-xr-x   2 daemon daemon    0 Jan  7  2005 tmp/
dr-xr-xr-x   6 daemon daemon    0 Aug 15 00:00 usr/
dr-xr-xr-x   6 daemon daemon    0 Aug 15 00:00 var/
(It's running geexbox).

Then I check if there's anything holding it open:
Code:
[root@petrata caysho]# ps ax | grep lufs
 5286 ?        Ssl    0:00 /sbin/mount.lufs none /home/caysho/mage -o rw noexec nosuid nodev noauto users user fs ftpfs host mage username  password
If I then kill the process, I can unmount it as root. As myself I still get the first error.

Any suggestions ?
I'm hoping I'm missing something simple
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Out of Memory: Killed process maenho Linux - Software 3 10-16-2005 05:06 AM
ssh-agent process not killed Notwerk Fedora 0 06-20-2005 07:07 AM
how to prevent process from being killed? iclinux Linux - Newbie 7 01-14-2005 10:43 PM
Killed Process Problem chr Slackware 2 05-06-2003 01:33 AM
process is getting killed automatically chens_83 Linux - General 2 09-16-2002 03:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:13 AM.

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
Open Source Consulting | Domain Registration