Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #245802

Files on /dev/shm/ disappear

From Antal Koós <k2osgak@gmail.com>
Newsgroups linux.debian.user
Subject Files on /dev/shm/ disappear
Date 2022-03-02 10:10 +0100
Message-ID <DWt9D-5kEn-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Files on /dev/shm/ disappear Antal Koós <k2osgak@gmail.com> - 2022-03-02 10:10 +0100
  Re: Files on /dev/shm/ disappear Greg Wooledge <greg@wooledge.org> - 2022-03-02 14:00 +0100
    Re: Files on /dev/shm/ disappear Andy Smith <andy@strugglers.net> - 2022-03-02 15:30 +0100
      Re: Files on /dev/shm/ disappear Andy Smith <andy@strugglers.net> - 2022-03-02 15:40 +0100
      Re: Files on /dev/shm/ disappear David Wright <deblis@lionunicorn.co.uk> - 2022-03-03 17:00 +0100

csiph-web