Security :: Remove Read/write/execute Permeation From Directories In '/' For 'others' ?

May 4, 2010

I was running '# ls -l' in '/' directory and I noticed all directories in '/' have the following permeation 'drwxr-xr-x' [except root's home which is 'drwx------' (after I change it from 'drwxr-xr-x' )]

I don't want all the user (except root) to be able to read and execute (in) any directory, I just want every user to be abel to read/write/execute only in his/her home directory.

my question is, is it ok to change file and directory permeation of the following directories in '/' from 'drwxr-xr-x' to 'drwxr-x---' or 'drwx------' recursively?

/bin
/boot
/dev
/etc

[Code]....

-I and the other users use the pc for internet, open office and email mainly.

-It does not run server(s) like smb/cif or NFS.

-There are 5 usernames (created by me, non of them are superusers) in th pc, only one user is required to login at any one time.

View 3 Replies


ADVERTISEMENT

General :: Windows Access The File From Ubuntu Got Read Only Even Though Have A Full Permission To Read, Write And Execute The File?

Feb 4, 2010

What are the possible problem when Windows access the file from Ubuntu got Read Only even though have a full permission to read, write and execute the file? Ubuntu to Ubuntu accessing the file there is no problem only Windows got a problem.

View 1 Replies View Related

Networking :: How To Mount Samba Home Directories As Read / Write?

Jun 14, 2011

I'm trying to configure a per user samba login for full access to the user's home directory.Mounting the shared directory works flawless when mounting from Windows. I can read, write, create without problems. However, when mounting from Linux the shared space is readonly.

View 8 Replies View Related

Security :: Group Write Access For Newly Created Files / Directories Without Changing Umask

Apr 3, 2009

I have several directories, each owned by root and a group of the same name,By setting the sgid bit, I made sure that newly created files and directories are owned by the correct group, and that directories have the sgid bit set too.On each newly created directory or file, the permissions are set to 755. This is because this is the default umask, and I cannot change a users umask. I actually only want files created below a particular directory to have group write access, inheriting this behaviour to newly created directories properly.I'm not on samba or NFS, I have to do this for SSH users.The filesystem is ext3.I started to fool around with ACLs, but couldn't find what I was looking for.

View 3 Replies View Related

Fedora Security :: Cryptset - Can't Read Or Write

Jul 28, 2011

So I have just set up my cryptsetup.I can open/mount it by either "crypsetup luksOpen" or just clicking on the partition from the "Places" tab and it will ask me for a password and all.

The only problem is that I can't read or write to it at all. Everything is probably root, which isn't useful to me.

So how can I change it so that when I do either of those 2 methods for opening it, I can just fully use it, read and write and everything? As my user.

View 1 Replies View Related

Security :: Group Can Read, Write, But Not Delete?

Oct 14, 2010

Long time reader, first time poster. I've got, what has become to me, a brain bender. It seems ACL's are the best way to go, but I am not 100% sure. Each user should be able to create files and modify each others'files, but should not be able to delete any one elses files in a directory.chmod -1777?setfacl?

View 2 Replies View Related

Ubuntu Security :: Read/write Access To MP3 Files In /usr/Music?

May 2, 2011

I had to reinstall Ubuntu (Natty) on a brand new computer and while installing I setup the datas partition to be mounted in /usr but now I can't have access to files I put in there even if I setup the group/user permission! I can accezz /usr/Music but all files are locked

View 5 Replies View Related

Security :: File Permission - Read An Execute Only File

Dec 16, 2009

Suppose I have a binary program with only execute permission enabled for the current user. How (in general) would I be able to obtain a core dump of the file? I think I have read it somewhere but I want to know if there are more ways of doing it.

View 1 Replies View Related

Fedora :: Chmod Has No Option To Skip Lowering Execute Bit On Directories?

Aug 20, 2010

Chmod has no option to skip lowering execute bit on directories? Now that's something I would consider a serious bug.

View 14 Replies View Related

General :: File Permission. Write And Execute Only?

Jan 11, 2011

Is there any use if a file has only write and execute permission and not read permission?

View 2 Replies View Related

Programming :: Write A Function That Shall Execute Periodic?

Sep 1, 2010

I want to write a function that shall execute periodic. means if i set time 1 sec that function should execute in each 1 sec. let us call that function func1. But i dnt want to wait inside the func1 for that 1 sec. Meanwhile i want to run another function say func2 in background . some thing like less priority function. Whnever the time come to execute the periodic function func1 it has to go to func1 and then again in the waiting time , the second function func2 will resume. I wanted to know how to do it.. Can somebody tell me is it possible using signal in linux.

View 6 Replies View Related

Ubuntu :: Should Sudo Be Able To 'read' All Directories?

Feb 15, 2011

I just installed sudo (I have slackware but always got better help here ) and I tried doing a

Code:
sudo du /
to see if I could get a general size estimate of all the directories and despite running it sudo I still was told "Cannot read directory" on some of the directories on my pc. should sudo have made it so I could read them all?

View 9 Replies View Related

CentOS 5 :: Write A Script That Will Find Recently Created Directories?

Sep 16, 2010

I'm using CentOS 5.5. I am trying to write a script that will find recently created directories (touched within 30 days) and create a symbolic link to those directories in another folder. Here is the script:

#!/bin/sh
cd /home/chris/Documents/;
rm -rf ./recent_files/*;
find ./ -maxdepth 1 -mindepth 1

[code]...

View 2 Replies View Related

General :: Get Samba Read + Execute Permission

Feb 20, 2010

i need 2 king of permission 1 is full access and other is read+exceute. it can be by ip by userid or by group. as i am beginner try to find such example cant find it so far see below my smb.conf file

[Code]....

View 1 Replies View Related

Software :: Write _ Debug _ Execute Programs Of Yacc And Flex?

Jan 2, 2011

I am using kubuntu 10.04 Linux.. How can I write and debug and execute programs of yacc and flex ?

View 3 Replies View Related

Ubuntu :: Can't Write To Directories Inside My Main File System / Change It?

Apr 23, 2010

I can't write to directories inside my main file system. This is annoying, how to change?

View 3 Replies View Related

Software :: .htaccess - Allow Users To Write Access To Files Or Complete Directories

Apr 23, 2011

I have a site hosted with a cheap hosting company and limited control of the site. I need to allow some other users all over the world to have write access to files or complete directories and I have no idea how to do that. Initially I thought I could use "chown" somehow but it looks like it's a no-go with ftp and others. By default, there is a .htaccess file and a .htpasswd file in the root directory of the site and the hosting company suggested to use .htaccess file with something like below:

[Code]....

and put it in a .htaccess file in the directory of user1 but the server does not like something since I inserted that file. Is it an error in the script or is there more to it than that? Can someone point me to a suitable tutorial or explain what to do?

View 5 Replies View Related

General :: Difference Between Directory Execute And Read Permission?

Mar 3, 2010

I was wondering what is the difference between directory execute and read permission?Also, how do I recursively remove executable permission from a dir, but just apply it to normal files?

View 6 Replies View Related

General :: Read And Execute Permissions For Executing The File

Mar 2, 2010

Binary files need only execute permission to execute. No read permission is required. But all executable files must be read by the kernel into main memory before executing. Also script files need both read and execute permissions for executing the file.

View 5 Replies View Related

Fedora Servers :: Setting Directories (But Not Contents) As Read Only In Samba

Apr 8, 2011

So I finally managed to get my Samba file server working () but now I have a question. On the server I have 4 folders, each being used for a certain topic. How would I set the folders as read only but not the contents, so that way remote users can read/write to the folder but can't delete or rename the folder itself? Also, if I restart the Linux box it will cease to show on the Windows Network unless I delete the Samba share and remake.

View 1 Replies View Related

General :: Read A Line Of C Comamnd And Execute In Shell Script?

Nov 9, 2010

I am using following code to read a lien from a file and store the value to a variable $line and execute it.

while read line
do
./$line &

[code]...

View 6 Replies View Related

Ubuntu :: String Of Directories To Remove?

Jan 1, 2010

I have a string of files named recup_dir.1 thru .66. I have the command sudo rm -r /home/"name"/Pictures/recup_dir.1 to remove them one at a time, how do I remove 20 or thirty at one command?

View 5 Replies View Related

General :: Remove Directories That Only Contain .txt And .log Files?

Aug 8, 2010

I'd like to remove all directories of a certain depth that don't contain .txt or .log files -- is this possible? So far I have: find ~ -mindepth 3 -maxdepth 4 -type d -exec rm -r '{}' ; Is it possible to add in "only if the directory doesn't contain .txt and/or .log files"? Or do I have to start learning perl to do that?

For example:
dir 1:
hello.txt
runme.sh
dir 2:
runme.sh
oct12.log
[Code]....

View 13 Replies View Related

Programming :: Mod_rewrite Remove Sub-directories From URL?

Apr 25, 2011

I have tried this a million ways, got it to work once but it didn't work sitewide for some reason. I have a url: [URL] and I want it to be found by going to: [URL] I am using this

Code:

RewriteCond %{REQUEST_URI} ^/agents/tp/
RewriteRule ^([^/]+)/?$ agents/tp/$1/index.php [L]

and have also tried something as basic as

Code:

RewriteCond %{REQUEST_URI} ^/agents/tp/
RewriteRule ^(.*)$ agents/tp/$1/index.php [L]

I keep getting "The requested URL /JoeAgent/ was not found on this server." why it's not working?

View 4 Replies View Related

Security :: Write A Shell Script Setup Security Policies?

Feb 3, 2010

Is there a way to delete files on the commandline that uses the KDE-Wastebin?It appears that I never ever need the KDE4 Wastebin for files that I deleted through Konqueror or Dolphin. It is only when I delete files on the konsole with rm that I wish I could undelete them. It always happens like that, mostly by being in the wrong directory or using a wildcard when I should not have. (I don't have any erroneous deleted file right now, and I do have plenty of backups, but I just wonder whether there is something better than rm to use generally on the commandline.)

View 9 Replies View Related

General :: Assign Read Privileges To User On Specific Directories And Files

Jan 26, 2011

I am using CentOS 5.5 and I created few users (useradd john etc.) and now I want to assign privileges to this user on some directories and files in those directories. For example I want to give read privileges to directory "/documents" and all of files under that directory.

View 13 Replies View Related

Programming :: Script To Create .menu File (recursively Read Directories)?

Nov 4, 2010

I've found myself in the situation where I need to create a menu in gnome/kde for a directory structure full of documents.The directory structure looks like this:

Code:
DOCS/
.. REFERENCES/

[code]...

View 1 Replies View Related

General :: Write A Script To Execute A Fortran Code That Reads In Parameters From Keyboard Typing?

Apr 18, 2011

I am trying to write a script (especially C-shell) to execute a fortran code that reads in parameters from keyboard typing. I will have to process this .F code for many times with the parameters the same for all my data files, therefore, I don't have to type in everytime I execute the .F code. But I don't know what is the command in c shell to read in a text files that contains all the parameters I want and can make the shell read in appropriately to feed the .F code.

View 3 Replies View Related

General :: Remove Multiple Directories In Different Locations?

Mar 15, 2010

I have hundreds of directories in various subdirs that I need to remove. I want to remove all of these dirs, but can only find solutions on how to do remove files (or how to remove subdirs from within the current dir).

I think I need something like

find -iname 'testfile*' | xargs rm -i

where I want to remove every directory that contains the word 'testfile' within the directory name. I know xargs wont work for dirs,

View 9 Replies View Related

General :: Remove Files In All Directories Owned?

Jan 8, 2010

Is there a way to do the rm command where I can remove files by owner. I run the standard ls -al command and I want to be able to remove the files that are owned by me in that current directory. One other step how can I remove files in all directories owned by me. I did the google search first guys and a majority of the pages just dealt with the basics like rm -r

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved