[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: problem running apt-get -b




On Thu, 12 Jul 2001, der.hans wrote:

> Am 11. Jul, 2001 schwäzte Faheem Mitha so:
> 
> > I recently changed my user id (faheem) from 1000 to 500. I tried to run
> > apt-get build pgp4pine just now as root in my home directory (the first
> > time after changing the id, I think) and I discovered that something has
> > got bollixeded up. I get
> > 
> > /usr/bin/dpkg-buildpackage: debian/rules: Permission denied
> > Build command 'cd pgp4pine-1.75-6 && dpkg-buildpackage -b -uc' failed.
> > E: Child process failed
> 
> You ran the build command as root? You shouldn't experience any "Permission
> denied" errors as root :). 

Agreed, but I do... :-) I think the problem may be that the non-existent
user owning the directory is confusing the permission system. Can't think
of any other explanation. When I try to do debian/rules from the top level
of the directory pgpine-1.75-6 I get a permission denied error. 

> Unless maybe there's a file where there should be a directory.

No, I don't think that is the problem.
 
> > and more strangely, a list of the relevant files gives
> > 
> > drwxr-xr-x    4 1000     faheem       1024 Jul 11 19:37 pgp4pine-1.75-6
> > -rw-r--r--    1 root     root        11039 May 14 11:16
> > pgp4pine_1.75-6-1.diff.gz
> > -rw-r--r--    1 root     root          599 May 14 11:16
> > pgp4pine_1.75-6-1.dsc
> > -rw-r--r--    1 root     root        85239 May 14 11:16 
> > pgp4pine_1.75-6.orig.tar.gz

This is a partial listing of the files in ~/debian (a subdirectory of my
home directory)

> > Note the user 1000. Since I changed the id, there is no longer a user
> > 1000, so there is clearly something wrong. Apparently at least one of the
> > package tools thinks that my id is still 1000. I tried building (as root)
> > in /tmp (ie not my home directory) and it works OK. So the problem is to
> > do with my user status. Presumably there is a place somewhere that has me
> > recorded as having user id 1000, and I need to change it.
> 
> Did you logout of all of your shells and log back in? Still, running as root
> should've caused that dir to be owned by root.

Yes, I've rebooted.

> "find / -user 1000" should turn up that directory. What's it look like in
> that dir and in the debian dir?

The output of find / -user 1000 (in total) is 

Chrestomanci:/# find / -user 1000
/mnt/suse/home/faheem/debian/pgp4pine-1.75-6
/mnt/suse/home/faheem/debian/pgp4pine-1.75-6/upstream
/mnt/suse/home/faheem/debian/pgp4pine-1.75-6/upstream/tarballs
/mnt/suse/home/faheem/debian/pgp4pine-1.75-6/upstream/tarballs/000_pgp4pine-1.75-6.tar.gz
/mnt/suse/home/faheem/debian/pgp4pine-1.75-6/upstream/patches
find: /proc/462/fd: Permission denied
find: /proc/611/fd/4: No such file or directory

These files were created by dpkg-source, I think, by unpacking the
pgp4pine sources. This is all quite puzzling. Note by the way that I have
also changed my default group to users so

drwxr-xr-x    4 1000     faheem       1024 Jul 11 19:37 pgp4pine-1.75-6

corresponds to a defunct user id with the (original) correct default
group.  I can't help feeling this information must be cached somewhere,
but I can't see where.

ls -la in the directory
~/debian/pgp4pine-1.75-6/upstream

gives

drwxr-xr-x    4 1000     faheem       1024 Mar 26 00:36 .
drwxr-xr-x    4 1000     faheem       1024 Jul 12 12:14 ..
drwxr-xr-x    2 1000     faheem       1024 Mar 26 00:36 patches
drwxr-xr-x    2 1000     faheem       1024 Mar 26 00:36 tarballs

so this entire directory has permissions 1000, for no apparent reason. Is
there anywhere else I can ask? Would the maintainers of these tools have
any idea?
                                       Faheem.



Reply to: