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

Files on /dev/shm/ disappear



Hi!
I'm not an expert Debian user and would like to know which package may have the error? Openssh-server maybe?

The symptom:
There are two users on a host 'debhost'.
I make 'su' from'user1' to 'user2', and create a file on /dev/shm.
I make 'scp' from another host for  'user2@debhost', but target is the $HOME and not the /dev/shm.
Result: the file disapperars from /dev/shm.

user1@debhost:~$ id
uid=1001(user1) gid=1001(user1) groups=1001(user1)
user1@debhost:~$ su -l user2
Password:  
user2@debhost:~$ id
uid=1002(user2) gid=1002(user2) groups=1002(user2)
user2@debhost:~$ touch /dev/shm/foofoo
user2@debhost:~$ ls /dev/shm/foofoo
/dev/shm/foofoo

On the other host:
kantal@Olympus:~$ touch barbar
kantal@Olympus:~$ scp barbar user2@debhost:
user2@debhost's password:  
barbar                     100%    0     0.0KB/s   00:00

Back to the 'debhost':
user2@debhost:~$ ls barbar  
barbar
user2@debhost:~$ ls /dev/shm/foofoo
ls: cannot access '/dev/shm/foofoo': No such file or directory
user2@debhost:~$ uname -a
Linux debhost 5.10.0-11-amd64 #1 SMP Debian 5.10.92-1 (2022-0
1-18) x86_64 GNU/Linux
user2@debhost:~$ cat /etc/issue
Debian GNU/Linux 11 \n \l

Thanks,
 kantal


Reply to: