[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fuse-devel
Subject:    Re: [fuse-devel] Sudo
From:       Miklos Szeredi <miklos () szeredi ! hu>
Date:       2007-04-24 16:38:49
Message-ID: E1HgO2T-0002WF-00 () dorka ! pomaz ! szeredi ! hu
[Download RAW message or body]

> >> Yes, that's what I meant when I said I pass the suid option. I pass 
> >> "suid" mount option to fuse_main. I checked /etc/mtab, the filesystem is 
> >> no longer mounted nosuid.
> >> I thought it might be because I also use the "default_permissions" 
> >> option, however, even after disabling it I still get the same error.
> >>
> >> Thanks,
> >> Fareha
> >>
> >>   
> >>     
> > Just to follow up on my last email. Basically any file that is owned by 
> > root and has no read permissions for others cannot be read. I ran 
> > fusexmp and did the following:
> >  > sudo less etc/shadow
> > Password:
> > etc/shadow: Permission Denied
> >  > sudo less etc/sudoers
> > etc/sudoers: Permission Denied
> >
> > I don't understand, isn't sudo suppose to 'make you root'. I'm using 
> > fuse-2.6.0, is there a bug in that?
> >
> > Thanks,
> > Fareha
> >   
> After further investigation I think what's happening is the following:
> When I try 'sudo less etc/shadow', less runs with sudo permissions. 
> However, fusexmp is not running with sudo permissions, and hence when it 
> calls the open on etc/shadow it gets a permission denied.

If fusexmp is not running as root, then why do you expect it to be
able to read /etc/shadow?

> I think I a missing something very simple. It would be really nice if 
> someone could help.

I think you might want to get a book on UNIX...

Miklos

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
fuse-devel mailing list
fuse-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fuse-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic