LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-30-2015, 11:43 AM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Slackware User permissions


I am exercising my mind over user permissions, as I may have to lend my laptop shortly.

Slackware has all files 0644 and all directories 0755. So all /home/ directories can be read and accessed by any other user. Issues start if I tighten permissions on my homedir - notably 'startx' pukes badly. While not having porn, I do have restricted information in my homedir and rely on the fact that I am the only user on my box.

Can I tighten homedir permissions, and to what extent?
 
Old 03-30-2015, 12:04 PM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
I don't have slackware but I set the home directories to be most restrictive 0700. And startx works fine.
 
1 members found this post helpful.
Old 03-30-2015, 12:13 PM   #3
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
I read this thread and noticed that Debian seems to do the same (I'm guessing the derivatives do also). So I'm interested myself as, at some point, I may share one of my computers with another human. As a quick fix I would just chmod the "sensitive" directories.
By the way, I understand this completely and realise it's not about "hiding" things just about not exposing everything all the time.
 
Old 03-30-2015, 12:27 PM   #4
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by business_kid View Post
While not having porn, I do have restricted information in my homedir and rely on the fact that I am the only user on my box.
This should be encrypted, that's the only real way to keep it secure.
 
Old 03-30-2015, 12:31 PM   #5
mancha
Member
 
Registered: Aug 2012
Posts: 484

Rep: Reputation: Disabled
POSIX ACLs afford no protection if they'll have physical access to the machine.

--mancha
 
Old 03-30-2015, 02:50 PM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
Originally Posted by veerain View Post
I don't have slackware but I set the home directories to be most restrictive 0700. And startx works fine.
So it does, and thank you kindly. 0700 was one number I hadn't tried.

I take the point about encryption, but I'm not having to deal with hackers, just guys without security clearance to see certain stuff. They don't know linux at a console level and will not have root.

They have physical access, and I hadn't thought about POSIX ACLs. Nearly everything I am familiar with in Posix doesn't work fully or isn't implemented or different on every machine (e.g. regexes), and I would not have been thinking that way. Why don't they deprecate _that_ stuff instead of the things I know my way around?
 
Old 03-30-2015, 04:03 PM   #7
TracyTiger
Member
 
Registered: Apr 2011
Location: California, USA
Distribution: Slackware
Posts: 528

Rep: Reputation: 273Reputation: 273Reputation: 273
Quote:
Originally Posted by business_kid View Post
They have physical access, and I hadn't thought about POSIX ACLs.
When mancha wrote...

Quote:
POSIX ACLs afford no protection if they'll have physical access to the machine.
I don't believe he was zeroing in on ACLs (POSIX compliant or not), but rather pointing out that file & directory permissions of a file system won't protect data if one has physical access to the computer.

For example, boot the machine from a CD or flash drive then as root mount the storage devices (hard disk) copy any data you want.


EDIT: Maybe I shouldn't have brushed away the "POSIX" aspect so quickly in my comment. Are there file systems out there that allow you to set up access control lists that include encryption control as part of the access control list?

Last edited by TracyTiger; 03-30-2015 at 04:27 PM. Reason: Added Quote, Had another Thought
 
Old 03-30-2015, 04:36 PM   #8
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
I've a feeling that encryption may not really be required in this set-up? Of course if there is some transparent encryption available then I'm sure that will work fine?
 
Old 03-30-2015, 08:11 PM   #9
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by business_kid View Post
I take the point about encryption, but I'm not having to deal with hackers, just guys without security clearance to see certain stuff. They don't know linux at a console level and will not have root.
Anything that requires security clearance to see requires encryption. As said above, having physical access to the machine means that virtually all other methods can be bypassed.

Quote:
Originally Posted by 273 View Post
I've a feeling that encryption may not really be required in this set-up? Of course if there is some transparent encryption available then I'm sure that will work fine?
I would say it is definitely required. I recommend cryptsetup as it is very flexible.
 
Old 03-31-2015, 03:37 AM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Yes, encryption makes sense.
But it is a PITA to set up, and at the moment I just do not have time. These guys will only have the use of my pc to show a presentation, while surrounded by others who would not approve of them snooping/hacking.
 
Old 03-31-2015, 05:27 AM   #11
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
These guys will only have the use of my pc to show a presentation, while surrounded by others who would not approve of them snooping/hacking.
Then another way would be to put the presentation on an USB stick and use another computer to display it.
 
Old 03-31-2015, 11:02 AM   #12
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Ok. You need the explanation.

On April 25th/26th, we have a multimedia event streamed from London to be viewed by speakers of English,Portuguese, Chinese, & Romanian. The event is in English; Our equipment allows translating for the smallish Chinese group; For the larger Romanian & Portuguese, they want a Portuguese/Romanian simultaneous translation in our main hall but the interpreter needs headphones with English to translate, and in one case, they need English in our second room as well. I have arranged the hardware, but it requires HDMI with the sound on the earphone jack. I have yet to find out if this is possible in windows. I am getting very blank looks from guys running windows pcs so far. We are having six showings of the program in the weekend. They may have to use my pc.

So, no usb stick; Chemfire kindly posted me an asoundrc for hdmi which resamples the sound, and inserting/removing this switches sound crudely, via a script.. I do not want to make a software project out of this - I do have a life.
 
Old 03-31-2015, 12:02 PM   #13
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Well, if you are watching them while they use your computer then just set the permissions as said above and that should be enough. I thought you were going to let them use it for an extended period unsupervised.
 
Old 03-31-2015, 12:16 PM   #14
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by metaschima View Post
Well, if you are watching them while they use your computer then just set the permissions as said above and that should be enough. I thought you were going to let them use it for an extended period unsupervised.
Just to clarify, this was what I was envisioning. I agree with you for recommending encryption as you are correct that it is the only way to prevent those with physical access from accessing data. However, I also realise that sometimes simplicity does well.
However, and this is a more important one: I seriously suggest, business_kid, that you encrypt your home partition with the likes of LUKS anyhow since anybody stealing that laptop would steal your data. This thread just reminded me I must check what I have stored on my laptop as I have some data (photocopy of passport and similar) I simply should not have on it -- I don't store it on my desktop since I don't encrypt my home drive or data drive.

Last edited by 273; 03-31-2015 at 12:18 PM. Reason: Typo's.
 
1 members found this post helpful.
Old 03-31-2015, 01:32 PM   #15
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
I agree that encryption would still be recommended on a laptop.

For pdf documents, you can actually encrypt them as is with AES-256 on Linux. I recommend:
http://sourceforge.net/projects/qpdf/?source=navbar
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setfacl changes group permissions; giving another user rw permissions secretlydead Linux - Server 4 09-22-2012 11:12 PM
[SOLVED] filesystem permissions question - making so user can't change permissions? c0pe Linux - Security 4 07-12-2010 09:06 AM
user permissions virtualbox 3.0.10 on slackware 13 patteP Linux - Virtualization and Cloud 3 11-04-2009 03:46 PM
User permissions - Slackware ch424 Linux - Newbie 8 10-05-2004 01:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration