Re: Per user tmp?

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

 



Gilboa Davara wrote:
> Hello all,
> 
> Any idea how I can setup a per-user tmp directory?
> E.g.
> USER1 has /tmp -> /tmp/USER1, /var/tmp -> /var/tmp/USER1.
> USER2 has /tmp -> /tmp/USER2, /var/tmp -> /var/tmp/USER2.
> etc.
> 
> In short, I want each user to have a private /tmp, and /var/tmp -
> without having to resort to using virtualized/jailed environment.
> 
> - Gilboa
> 
> 
One thing I have done is create a tmp directory in each user's home
directory, and then set the TMP variable to point to it. You will
also want to add the tmp directory to /etc/skel so new users get it
created for them automatically. (I added "TMP=$HOME/tmp" and added
TMP to the export list in .bashprofile, but you could also add files
to /etc/profile.d to cover both the c and sh shell variants.

OH yes, the /tmp directory does limit what other users can do to
your files in /tmp.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux