Can't access some files (/tmp)
Matthieu Dubuget
matthieu.dubuget@gmail.com
Fri Jan 23 14:29:00 GMT 2009
Hello,
I hope this is not a FAQ. But really, I could not find the answer in it,
or maybe, I did not understand?
I just re-installed cygwin on my computer.
Before that, I did a complete un-installation (stopped and removed
services, removed cygwin directory, removed entries in the registry,
reboot).
Then ran setup.exe as an unpriviledge user (it asked me if I wanted to
switch to a prividege user, what I did before installation: computer's
Administrator).
I did an all default installation.
Added a HOME environment in windows for me -> c:\cygwin\home\matt
Ran cygwin.bat as Administrator.
mkpassword -l -g -d > /etc/passwd
mkgroup -l -d > /etc/group
(the computer I'm using is part of a domain)
Then ran cygwin.bat as matt
-> bash.exe: warning: could not create /tmp!
Ah ah. I have a problem of rights.
I opened a session as Administrator:
$ ls -l /
total 9
-rwxr-x---+ 1 Administrateur Utilisateurs 57 Jan 23 12:46 Cygwin.bat
-rwxr-x---+ 1 Administrateur Utilisateurs 7022 Jan 23 12:46 Cygwin.ico
drwxrwx---+ 2 Administrateur Utilisateurs 0 Jan 23 12:46 bin
dr-xr-xr-x 1 0 0 0 Jan 1 1970 cygdrive
drwxrwx---+ 2 Administrateur Utilisateurs 0 Jan 23 12:46 dev
drwxrwx---+ 8 Administrateur Utilisateurs 0 Jan 23 12:46 etc
drwxrwxrwx+ 4 Administrateur Aucun 0 Jan 23 13:04 home
drwxrwx---+ 5 Administrateur Utilisateurs 0 Jan 23 12:46 lib
dr-xr-xr-x 1 Administrateur Aucun 0 Dec 1 2006 proc
drwxrwxrwt+ 2 Administrateur Aucun 0 Jan 23 14:19 tmp
drwxrwx---+ 11 Administrateur Utilisateurs 0 Jan 23 12:46 usr
drwxrwx---+ 7 Administrateur Utilisateurs 0 Jan 23 12:46 var
$ ls -ln /
total 9
-rwxr-x---+ 1 500 545 57 Jan 23 12:46 Cygwin.bat
-rwxr-x---+ 1 500 545 7022 Jan 23 12:46 Cygwin.ico
drwxrwx---+ 2 500 545 0 Jan 23 12:46 bin
dr-xr-xr-x 1 0 0 0 Jan 1 1970 cygdrive
drwxrwx---+ 2 500 545 0 Jan 23 12:46 dev
drwxrwx---+ 8 500 545 0 Jan 23 12:46 etc
drwxrwxrwx+ 4 500 513 0 Jan 23 13:04 home
drwxrwx---+ 5 500 545 0 Jan 23 12:46 lib
dr-xr-xr-x 1 500 513 0 Dec 1 2006 proc
drwxrwxrwt+ 2 500 513 0 Jan 23 14:19 tmp
drwxrwx---+ 11 500 545 0 Jan 23 12:46 usr
drwxrwx---+ 7 500 545 0 Jan 23 12:46 var
Some french vocabulary:
- Aucun means None (513)
- Utilisateurs means Users (545)
Then I opened another session as matt:
$ ls -l /
ls: ne peut accéder /tmp: No such file or directory
total 9
-rwxr-x---+ 1 Administrateur Utilisateurs 57 Jan 23 12:46
Cygwin.bat
-rwxr-x---+ 1 Administrateur Utilisateurs 7022 Jan 23 12:46
Cygwin.ico
drwxrwx---+ 2 Administrateur Utilisateurs 0 Jan 23 12:46 bin
dr-xr-xr-x 1 0 0 0 Jan 1 1970 cygdrive
drwxrwx---+ 2 Administrateur Utilisateurs 0 Jan 23 12:46 dev
drwxrwx---+ 8 Administrateur Utilisateurs 0 Jan 23 12:46 etc
drwxrwxrwx+ 4 Administrateur Aucun 0 Jan 23 13:04 home
drwxrwx---+ 5 Administrateur Utilisateurs 0 Jan 23 12:46 lib
dr-xr-xr-x 1 matt Utilisa. du domaine 0 Dec 1 2006 proc
??????????? ? ? ? ? ? tmp
drwxrwx---+ 11 Administrateur Utilisateurs 0 Jan 23 12:46 usr
drwxrwx---+ 7 Administrateur Utilisateurs 0 Jan 23 12:46 var
Can't access to /tmp??? No such file or directory? I can't figure out why?
And more important, how to solve this?
Salutations
Matt
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list