Ubuntu QA:
BlogBrainstormPackage status
Log in
Ubuntu QA
The Ubuntu community has contributed 22700 ideas, 138270 comments, 2629576 votes
Idea sandbox Idea sandbox
Popular ideas Popular ideas
Ideas in development Ideas in development
Implemented ideas Implemented ideas

Contributor tgape on the Security category

A Too to Repair permissions  
Written by randall29 the 30 Apr 08 at 11:11. Global category: Security. New
Excuse me for the typo in the title, it's, of course, a "TOOL" ;-)
I actually had a big problem last time I reinstalled: backuping my documents and files on a USB key, I reinstalled the OS.
But when I copied the whole thing on my new /home partition, every preferences folder had its permissions changed, so that no application would actually start.
I had to repair every single folder with its good permissions, which took me at least 3 hours.

Could we have a tool to repair the permissions all over the system, so that this kind of burden would be avoided (and it could probably speed up the system a little, if it repaired everything correctly)
69
votes
up equal down
Solution #1: Auto-generated solution of idea #7874
Written by randall29 the 30 Apr 08 at 11:11.
Ubuntu Brainstorm was updated in January 2009. Since the idea #7874 was submitted before this update, its rationale and solution are not separated. Please vote accordingly, and if you have the necessary rights, please separate the rationale from the solution. Thanks!
4
votes
up equal down
Solution #2: Permissions copy?
Written by Wolfgang Mcpherson the 19 Jul 09 at 21:26.
i'm not sure, but wouldn't it be fairly easy to implement a "Copy Permissions to Ubuntu Installation on _____" option on the live cd?


this would simply copy permissions from the live cd to matching files on the hard drive install, nothing more.

it wouldn't fix everything, but it should get the system up and running for the most part i think.

also, it might be possible to add some sort of tool or system via synaptic, which can correct broken permissions of installed packages by downloading, and extracting into some temp directory

( ?is it neccesary? i'm not familiar enough to know if permissions can be read inside a deb),

copying permissions, and then deleting the temp stuff. this would only work after the live cd has copied permissions to system files.


(the reason for this last idea would be to repair permissions on modified package files without re-installing & re-modifying)
4
votes
up equal down
Solution #3: Secure File Permissions With File Permission Lists
Written by deere the 21 May 10 at 21:19.
I would advice to use permission list files in Ubuntu like SUSE dose.
Suse has these permission files where all the files are listed with their default permissions.
You can choose between permission policies and can place permission files for programs like postfix in /etc/permissions.d.
You can place explicit permissions for files in /etc/permissions.local.
I think this is a very good solution for the permission problem and it makes a system more secure.
It is also a good solution for the accidentally executing "chmod -R 777 /".

SUSE Permission files / dirs:
/etc/permissions.paranoid
/etc/permissions.d
/etc/permissions.secure
/etc/permissions.easy
/etc/permissions.local
/etc/permissions


You can run a command if you want to reset the permissions or you can run it from cron every day to make sure your files have the right permission. This is a script contained in SUSE which sets the permissions according to the entries in the files.

This SUSE functionality is licensed under the GPL license so could also be included in ubuntu.
3
votes
up equal down
Solution #4: Cron Script that builds a "reset permissions" script
Written by marcovanbeek the 21 Sep 10 at 18:36.
I suggest a nightly cron script that runs a command like this:

/usr/bin/find $include_files -fstype proc -prune -or -fprintf $permissions_reset_script "chown %u:%g '%p' ; chmod %m '%p'\n" -fprintf $permissions_record "chown %u:%U:%g:%G:%m:%p\n"

That gives you two files. The second one gives you a script that can be run directly from the command line to resets all the permissions in $include_files. The first file is a simplified list which works well when you diff it with an earlier file.

A bit of file compression and a bit of clever file naming would allow multiple historical copies that can be used to revert permissions and/or troubleshoot them.

It would also be useful during forensic analysis, as it also contains a list of ALL the files on a system (within the scope of $include_files anyway) at a given time.

See the 15 comments or propose a solution (latest comment the 21 May 10 at 14:56) >>

Change keyring when password is changed  
Written by waspinator the 11 May 08 at 14:05. Global category: Security. New
When I changed my login password I had to manually change my keyring password also, otherwise I had to enter both my new password to login and then my old password to access my keyring.

It's seemingly small things like this that keeps ubuntu from being ready for the average windows user to switch to. I hope these details will be looked into for the next release.
69
votes
up equal down
Solution #1: Auto-generated solution of idea #8365
Written by waspinator the 11 May 08 at 14:05.
Ubuntu Brainstorm was updated in January 2009. Since the idea #8365 was submitted before this update, its rationale and solution are not separated. Please vote accordingly, and if you have the necessary rights, please separate the rationale from the solution. Thanks!

See the 3 comments or propose a solution (latest comment the 2 Nov 09 at 09:46) >>

Periodic Notification of Open Ports  
Written by Monicker the 3 May 08 at 21:55. Global category: Security. New
This might be helpful for new users to linux.

I think there could be some kind of periodic check for open ports on the machine which are externally accessible. Judging by the forums, lots of people are experimenting with LAMP, and other services which will open ports. New users may not realize the implications of this, or may even forget that an application is listening on a given port.

Perhaps there could be some kind of weekly/monthly notification which pops up briefly as a reminder. This is similar in concept to logwatch, which sends email notifications about failed login attempts, among other things.

Personally, I would get tired of it pretty quickly, as I usually run netstat on regular basis to see what services are listening, but I am sure many are unaware about such information.

-26
votes
up equal down
Solution #1: Auto-generated solution of idea #8031
Written by Monicker the 3 May 08 at 21:55.
Ubuntu Brainstorm was updated in January 2009. Since the idea #8031 was submitted before this update, its rationale and solution are not separated. Please vote accordingly, and if you have the necessary rights, please separate the rationale from the solution. Thanks!

See the 1 comments or propose a solution (latest comment the 27 Jul 09 at 15:09) >>

UpdateDB, Tracker, Nautilus Security Exposure (Disable by default)  
Written by flounder the 21 Apr 08 at 17:15. Global category: Security. New
Caching of file information presents a security hole, performance hole, and a power sink for most users.

1. It is trivial to access meta information regarding the contents of encrypted partitions by simply gaining access to the caches stored by tracker, updatedb, and nautilus. Nautilus can be made smarter by simply using a directory local cache, and asking the user when permissions aren't available if home directory context caching is acceptable. Tracker and locate/updatedb should be disabled unless the user actually selects to enable them through some sort of administrative/package/add/remove type interface. When these things _are_ enabled it should be optional to use a ram based file system cache for this cached data which can not be swapped.

2. All three of these things are awful for performance when you don't need them (and most users don't with the exception of constrained nautilus caching). Furthermore, these components can access networked (samba/nfs/andrewfs/iscsi)/high latency (optical/usb)/limited lifetime (flash) devices. There is nothing that kills the throughput or interactivity of an interactive OS than this kind of random block device access.

3. These components should never be automatically run when the system is running from a battery (UPS or laptop). They all kill the battery life of every power hungry component (CPU/hard drive/chipset/...).

Nautilus file introspection is the worst possible performance sink, and should have some sort of check box in the GUI to be enabled/disabled (per directory?).


--- related security ideas include: ---
http://brainstorm.ubuntu.com/idea/7434/
http://brainstorm.ubuntu.com/idea/7436/
68
votes
up equal down
Solution #1: Auto-generated solution of idea #7365
Written by flounder the 21 Apr 08 at 17:15.
Ubuntu Brainstorm was updated in January 2009. Since the idea #7365 was submitted before this update, its rationale and solution are not separated. Please vote accordingly, and if you have the necessary rights, please separate the rationale from the solution. Thanks!

See the 4 comments or propose a solution (latest comment the 25 Jul 09 at 15:02) >>

Support File POSIX Capabilities  
Written by mikaelstaldal the 5 May 08 at 12:52. Global category: Security. Implemented
It would be nice if Ubuntu supported File POSIX Capabilities. It would be especially useful in the server edition, but also useful on desktop.

See here: http://www.friedhoff.org/posixfilecaps.html
25
votes
implemented
Selected solution (#1): Set flag in kernel and update libcap2
Written by mikaelstaldal the 5 May 08 at 12:52.
Activate the CONFIG_SECURITY_FILE_CAPABILITIES flag in the kernel and update to libcap2 2.08.

See the 9 comments or propose a solution (latest comment the 28 Feb 09 at 15:40) >>

Set some locations as non-executable  
Written by Eldmannen the 6 May 08 at 12:32. Global category: Security. New
Mark /dev, /etc, /lib, /proc, and /var as non-executable.

So that it will not be able to execute a file that resides in those directories, since those directories should never contain any executable files.

Also ~/.config should be non-executable.

This can increase security.
23
votes
up equal down
Solution #1: Auto-generated solution of idea #8156
Written by Eldmannen the 6 May 08 at 12:32.
Ubuntu Brainstorm was updated in January 2009. Since the idea #8156 was submitted before this update, its rationale and solution are not separated. Please vote accordingly, and if you have the necessary rights, please separate the rationale from the solution. Thanks!

See the 10 comments or propose a solution (latest comment the 3 Dec 08 at 23:05) >>

Remove the Remote Desktop 8 Character Password Restriction  
Written by luke16 the 4 May 08 at 00:52. Global category: Security. New
Is there any particular reason that I am not allowed to make passwords longer than 8 characters in the Remote Desktop settings menu? It just seems like a really silly and pointless restriction to me that could potentially weaken the overall security of the system by having a weaker than necessary password, and it should be removed.
Linux is supposed to be all about good security.
41
votes
up equal down
Solution #1: Auto-generated solution of idea #8038
Written by luke16 the 4 May 08 at 00:52.
Ubuntu Brainstorm was updated in January 2009. Since the idea #8038 was submitted before this update, its rationale and solution are not separated. Please vote accordingly, and if you have the necessary rights, please separate the rationale from the solution. Thanks!

See the 5 comments or propose a solution (latest comment the 18 Oct 08 at 03:28) >>

Kernel patch to wipe deleted files (security)  
Written by flounder the 22 Apr 08 at 21:32. Global category: Security. New
Deleting a file only removes the directory entry, but not the actual file.

This behavior is best for performance (and should remain the default). However, many programs create/delete *temporary* files which contain private data and can't be wipe'd by normal user space solutions.

The fastest and most reliable solution is to patch the kernel ext3fs driver to automatically wipe each deleted file (if this behavior is selected by the user via /proc).

This wipe/delete functionality could be seeded with a source/value (any eight bit value or /dev/urandom for example) combined with a number of passes. In addition to the obvious performance benefits vs. userspace solutions, having a journaling file system makes this important to implement at the kernel FS level. User space solutions (including glibc hacks) can't catch all of the temporary files.

--- related security ideas include: ---
http://brainstorm.ubuntu.com/idea/7434/
http://brainstorm.ubuntu.com/idea/7365/
32
votes
up equal down
Solution #1: Auto-generated solution of idea #7436
Written by flounder the 22 Apr 08 at 21:32.
Ubuntu Brainstorm was updated in January 2009. Since the idea #7436 was submitted before this update, its rationale and solution are not separated. Please vote accordingly, and if you have the necessary rights, please separate the rationale from the solution. Thanks!

See the 11 comments or propose a solution (latest comment the 15 Oct 08 at 20:26) >>

Make KeePass Password Safe a default program  
Written by MarcusRubeus the 8 May 08 at 21:40. Global category: Security. New
Password management is central to security. In my opinion the best password management system is the open source KeePass Password Safe (keepass.info).

The linux port is already in the repository. The name is KeePassX (keepassx.org). The features are lacking compared to the windows version, but it is still a very functional program.

Improving KeePassX and including it as installed on default would be a very nice addition to Ubuntu.
-18
votes
up equal down
Solution #1: Auto-generated solution of idea #8254
Written by MarcusRubeus the 8 May 08 at 21:40.
Ubuntu Brainstorm was updated in January 2009. Since the idea #8254 was submitted before this update, its rationale and solution are not separated. Please vote accordingly, and if you have the necessary rights, please separate the rationale from the solution. Thanks!

See the 9 comments or propose a solution (latest comment the 8 Sep 08 at 16:41) >>

Port 8.04 server security features to Desktop  
Written by Xan the 25 Apr 08 at 16:04. Global category: Security. New
Ubuntu server edition 8.04 has many security features _by default_, overall in kernel (http://www.ubuntu.com/products/whatisubuntu/serveredition/features/security)

Address Space Layout Randomisation, Stack protection, Heap protection, Non-executable memory, etc.

Please port these features to desktop edition for desktop users could enjoy too.

86
votes
up equal down
Solution #1: Auto-generated solution of idea #7611
Written by Xan the 25 Apr 08 at 16:04.
Ubuntu Brainstorm was updated in January 2009. Since the idea #7611 was submitted before this update, its rationale and solution are not separated. Please vote accordingly, and if you have the necessary rights, please separate the rationale from the solution. Thanks!

See the 9 comments or propose a solution (latest comment the 25 Aug 08 at 17:38) >>

2 Next >>