Ubuntu folder level security


 
Thread Tools Search this Thread
Special Forums Cybersecurity Ubuntu folder level security
# 1  
Old 01-05-2010
Ubuntu folder level security

I have installed ubuntu. And I have create users ans groups.
Suppose if the user enter into through Putty SSH. He should have access only to home folder and cannot move to other than $HOME. User should not able to root files and /$ files.

Kindly provide solution.

Regards
Vasanth kumar
# 2  
Old 01-05-2010
They have access to whatever POSIX is set to. By default a non admin user will only have rwx access to their own home directory and read and execute access in other places. It depends on how you set up users and groups. If the user is an admin, then they can access anything via sudo.
# 3  
Old 01-05-2010
I am the root user.. I have created users and groups...

Suppose if the non-user enter into through Putty SSH. He should have access only to home folder and cannot move to other than $HOME. User should not able to root files and /$ files.
# 4  
Old 01-05-2010
Quote:
Originally Posted by vasanthrj
I am the root user.. I have created users and groups...

Suppose if the non-user enter into through Putty SSH. He should have access only to home folder and cannot move to other than $HOME. User should not able to root files and /$ files.
This totally depends on your set up. Out of the box Ubuntu install is probably only going to all full access to ~/ (home) but not to anything else. However, if the ssh into a linux box they will still get read and execute access to a lot of other files. What exactly are you talking about specifically?

If you set up your own users and groups then it will abide by those POSIX, and if you go even further like ACLs you can add even more settings to it.

When I ssh into my web server I have only rwx access to my ~/ but I have read and execute access to other files. I can use ls and see what is in /etc and I can read some files but cannot write to them, so access is a very broad term. Also you don't need to be the root user to access files/folders owned by root. All you need is sudo access and to be in the /etc/sudoers, and Ubuntu uses this. So any user that is in that group or has that access can gain root privileges via sudo.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

General question about folder level permissions

How is the level of access on a particular folder determined? I have heard (its just hearsay so am not particularly sure of it) that the access a particular user/group has to a low level directory is also affected by the level of access granted to the user/group on its parent directories. e.g. ... (1 Reply)
Discussion started by: jawsnnn
1 Replies

2. Shell Programming and Scripting

Folder level size monitoring

Hi All, I have a requirement to monitor the sub-directories under /home in a way that if the the folder size increases by 30 GB in a span of like an hour then it needs to send email alerts listing what as the actual size was and what's the current size which the subject listing the sub-directory... (25 Replies)
Discussion started by: Shailesh6
25 Replies

3. Solaris

Unix file, folder permissions, security auditing tools.

I want to periodically check if ASCII password/config files on Unix have 400 or 600 access. Folders and files are owned by designated group and user. Folders and Files do not have world write access. Are there any tools/scripts available for this kind of auditing that I can use on Solaris? (7 Replies)
Discussion started by: kchinnam
7 Replies

4. UNIX for Dummies Questions & Answers

Redirect with htaccess to upper level folder, how to?

Hello, Well I have a web with a very bad structure (a vBulletin forum) and I want it redirected to a newer folder in the same server but with a upper level folder. Current structure is: https://www.unix.com/vbulletin/upload/index.php And I want it to be:... (0 Replies)
Discussion started by: Rafaweb
0 Replies

5. Shell Programming and Scripting

Security for applets files inside a folder

Friends I have a directory structure /a/b/c/applets/ This directory has .java, .class and other applet files. I gave the applets folder 755 permission because these applets are displayed at different web pages of a portal. Now I want to restrict the visibility of all the files in this... (0 Replies)
Discussion started by: dahlia84
0 Replies

6. UNIX for Dummies Questions & Answers

find files on first level folder

Hi: I have: folderA |----folderB |----folder1 |----folder2 |----folder3 |----folder3.1 Question: How can I find *.txt ONLY from /folderA/folderB/ and not the others folder1,2,3?? I tried: find... (8 Replies)
Discussion started by: iga3725
8 Replies

7. Red Hat

Enhancing security of temporary folder

While enhancing security of my temporary folder in the post described in Secure temporary folders on existing Unix or Linux systems | SysAdmin.MD my redirection fails. This commands always fails echo "/mnt/tmp /tmp ext3 loop,noexec,nosuid,rw 0 0" >> /etc/fstab Can anybody please tell my why? (1 Reply)
Discussion started by: synthea
1 Replies

8. Shell Programming and Scripting

operation on a folder level

hi, need help in writing a script in perl. requirement : 1. Search for the files in a particular folder 2. search for a string in the file names 3. Delete the file which matches the string. Ex: if the folder is C:\TEST and the folder has 5 files like 2009ABCG.txt 2009MNO.txt... (2 Replies)
Discussion started by: adityamahi
2 Replies
Login or Register to Ask a Question