Ubuntu :: Restricting Users To A Specific Folder And Its Subfolders
Dec 29, 2010
I wanted to restrict users within a particular folder say /var/lib/tomcat/webapps. I want the users to see all subfolders inside webapps and work with it (edit+read but no delete). I understood that chroot is the way, and i read this [URL] community discussion, but what i understand out of it is, they are trying to give a complete working installation of ubuntu to the user within a directory which i dont want to.
View 3 Replies
ADVERTISEMENT
Jun 5, 2009
Lately I'm getting this question a lot.For every project I want to create a tree like this:
Code:
- project
- drawing
[code]...
View 4 Replies
View Related
Aug 21, 2010
I am using secure delete to remove files from a Debian Linux PC. However, secure delete does not remove folders. This has lead me to look at writing a script that would move files to a predetermined folder for deletion. My plan is as follows:I have a folder on my desktop called shredder where I move the contents of the waste bin to. The script needs to identify all files within the folders and sub folders, within the shredder folder, and move each file to the shredder folder and then delete the folder. At this point secure delete can be used with a command like shred -v -u *.*on the shredder folder.The problem I have is in creating the code to move files from the different folders and then deleting the folders. Note that the names of the files, folders and subfolders will not always be known
View 12 Replies
View Related
Sep 10, 2009
How would i go about copying all .jpg or .JPG files from a folder and all its subfolders to my /usr/name/pictures folder? I'm guessing I'd have to use some sort of .[jJ][pP][gG] to get all the pictures from other examples i've seen, but really not sure how to use that in a recursive cp.
View 14 Replies
View Related
Jun 11, 2010
How to go through all the subfolders and rename all the folders named 'Old' to 'New'
View 2 Replies
View Related
May 26, 2011
i installed tomecat6 in Linux server i deployed xyz.war file and jkmonunt in Apache this is for out side usage recently i deployed one more war abc.war i din't mount in apache this is internel application usage purpuse in my application i tried to call this abc.war (http://X.X.X.X:8080/abc/abc.war) but i am unable to access this folder i checked the iptable rules i gave access permission in 8080 port.
View 2 Replies
View Related
Jun 3, 2010
How to get a list of all the subfolders with a specific name
e.g. all the folders which their name contains 'NAME' code...
but this won't give me a unique list (if the folder has subfolders it gets listed multiple times)
View 1 Replies
View Related
Jul 6, 2010
I have been asked by my company management to look into moving file share server from Windows 2003 server OS to Ubuntu 10.4 using Samba. I have successfully configured active directory authentication using winbind and have configured samba and am able to access my file share successfully.
The complication arises as a result of implementing ACL mappings on Linux, as I need fine grained control over specific subfolders and files. From what I have read, I cant map all 13 permissions to respective unix rwx permissions. I have a use case where a certain group called A has read write execute rights on a folder/file but they shouldnt be allowed to delete the specific folder/file. On windows, all I have to do is set up my security permissions to deny 'delete subfolders and files' and 'delete' and it works well. In linux world I understand I cant do this as the user has rwx permissions on the folder/file and he can do whatever he likes.
I googled a lot around this issue and found that if you set up sticky bit on the directory I can still read and write from the file or directory and wont be able to delete it. It works in case of most document types but MS office. From samba help I figured that "Word does the following when you modify/change a Word document: MS Word creates a new document with a temporary name. Word then closes the old document and deletes it, then renames the new document to the original document name." (from samba how to) So if the sticky bit is set on the directory containing word files for instance, linux wont be able to delete the file (as required in write operations by MS office) and hence comes with an error. I shall be highly obliged if some one can shed light on this issue. Alternatively I would love to learn about other solutions for the use case mentioned.
View 1 Replies
View Related
Apr 22, 2010
I have an internet and mail server installed CentOS, and I want to restrict client machines to access a certain website, e.g. if i want restrict users from accessing the website: www.mydomain.com, How do I do it?
View 6 Replies
View Related
Feb 16, 2010
I need some kind of step by step process to restrict my users to only have access to directories that I specify ? For example user joe can only access his home directory, read access to /tmp and read access to /var/log/httpd
View 1 Replies
View Related
Aug 9, 2010
I have a few small lists created in mailman, and I want users to be able to receive, but not post. Where do you find this setting?
View 2 Replies
View Related
Mar 17, 2011
I run a system that users may log into either remotely or physically. Multiple users may be logged in simultaneously because of the remote access, but only one user can be physically logged in at a time.With the current setup, however, if the physical user inserts a flash drive (which the OS mounts automatically) then the remote users gain access to the removable media.
View 6 Replies
View Related
Oct 21, 2009
How to restrict some uses to send mail to outside domains except local in sendmail.I am using ( CentOS5 + Sendmail )
View 2 Replies
View Related
May 30, 2010
i have a folder with 250 subfolders and each one of them has (at least) one image in it (along with other stuff)how can i 1)copy all the images from those subfolders and paste them into one folder together (other than by hand, obviously)?2)optional : copy only the images of a certain size and above?
View 2 Replies
View Related
Mar 4, 2010
I installed Samba on CentOS, create a principal share called "public" . I want to populate this share with subfolders, and to grant access rights to specific folders for specific users. The content of "public" will be visible for all Samba users, but they will have read/write access only to the specified subfolders based on my security policy. I need the best way for doing this kind of stuff...
View 1 Replies
View Related
May 10, 2010
Ubuntu and am using the 64bit version of Ubuntu 10.04.Now I can access the folders in my home folder through the places GUI, but I can't access them in the terminal. When I begin typing in the terminal and press tab it does not autocomplete, and typing the directory manually says that there is no such file or directory, even though when I type dir or ls they are clearly there.
View 7 Replies
View Related
May 11, 2011
I have a music folder that contains alot of folders for different artist, each of those folders contain various folders for different albums. The Music folder itself has got a music folder icon, but all of the subfolders have the regular folder icon, I would like all of the subfolders to have the music folder icon but I don't want to go through each folder to change the icons one at the time. Is it possible to change the folder icon and apply the change to all the subfolders and sub-subfolders? I'm on 10.10 btw
View 1 Replies
View Related
Jan 10, 2011
I would like to know how to move all the files from a single folder and its subfolders to a single, different location in as few steps as possible. For example when I download files from one of my school's websites, the file I want is located in a deep sub-directory. So, I have to cd many times just to get to the file I want. Is there a way to recursively move all the files within a folder's subdirectories into a new location?
View 2 Replies
View Related
Mar 18, 2010
I'm running OpenSuse 10.3 and I've tried to set permissions on my folder and subfolders from root:root to wwwrun:www. In the shell it shows all folders and files with the correct permissions, but in the GUI it still says root:root and so my web application can't write to it, until I manually set the subfolders permission in the GUI.
View 9 Replies
View Related
Apr 1, 2010
I just installed Karmic, but I can't copy an old user's home folder (/home/oldusername/) because everything is owned by root.I read but I'm concerned about messing up the system or the files in that old user's folder.So, how do I adjust the permissions of the files in /home/oldusername so that I can use openssh to copy them over my home network to my other computer? I have the ssh part figured out, but the files will not copy to the laptop due to permissions.
View 9 Replies
View Related
Jul 24, 2010
I need to search a bunch of files in a specific folder for a specific number and add all the numbers together to a total sum. I use Rsync everyday, everytime I run rsync i get a logfile (rsync output) witch contains the textstring "Total bytes sent: xxxxxx".
The "xxxxx" can vary in lenght. I need to extract the "xxxxxx" from each file and add the numbers together to a total size over a week or a month. Is this possible? And I wish to only use bash. One way of doing stuff at a time my friends .
View 5 Replies
View Related
May 1, 2009
I have set up a small Mesh Wireless Hotspot at a local Flea Market. My plan is to add in one of those HotSpot services for billing and such..ut until I have enough users to justify that expenditure, I am just going to manually set up accounts.The system is all up and running as an OPEN SYSTEM. Users are able to access the net just fine thru my existing setup.My question is, how can I create user accounts so that users of my wireless network will have a username and password that they can log in with
View 11 Replies
View Related
Jun 24, 2009
Is it possible to have a folder on user A's GroupWise mailbox that user B can access with as much permisions as user A but user B cannot access the rest of user A's mail?
View 2 Replies
View Related
Jun 1, 2010
Can I use sed to include a text file in the beginning of other text files inside a folder and its subfolders? So it should be recursive.
View 4 Replies
View Related
May 25, 2011
I've setup a FTP server in OpenSUSE 11.1 with KDE 3.5.x. (Pure-ftpd) But when I connect with an user to the FTP server I can browse to all folders on the OPENSUSE system, how can I setup one folder for all users and restrict the FTP connection to that folder only??
View 1 Replies
View Related
Jul 18, 2011
I am trying to delete specific users along with their files, these are the steps i am taking,
Quote:
sudo su -
Quote:
cat /etc/passwd
Quote:
userdel user1
userdel command not found.
I am not able to remove the specified user, Does anyone know how else to remove this user.
View 7 Replies
View Related
Jan 7, 2011
I've got a NAS running and I'd like to somehow make some of the folders and files invisible to certain users only. For example, if I 'ls' a directory, I want to see files 'a', 'b', and 'c'. But if another user does 'ls' in the same directory, I only want them to be able to see 'a' listed.I know I can use 'chmod +700' to make certain files not able to be read/written, but the filename would still appear in a 'ls'.I know I can put certain files inside of a '.hidden' file in the folder, but then it would be hiEdit : I'd also like to mention that the users that connect to the NAS could be coming from Windows or Mac operating systems. So hopefully the solution would work for users from those systems also..
View 5 Replies
View Related
Aug 1, 2011
I want to lock the filesystem based on user basics, In effect only specific users should have write access. This need to done apart from normal permission setup.
In Detail:
filesystem: /app
application users: appuser1 & appuser2
Normal users: user1 user1
Required: Only app users need to have write permission over app file system, this should done apart from the normal directory permissions. The all other users can able to view the contents even though other users have write permission based on permissions.
This need to done by over ridding the normal permission setup.
View 6 Replies
View Related
Mar 21, 2010
i need to install this downloaded tar gz file into the /proc/driver directory.
View 6 Replies
View Related
Oct 19, 2010
Is there a possibility in openldap to allow a user to only create/manage specific LDAP users?For example user "mailadmin" may only create/manage mail accounts in LDAP that are named like "m1342895"? Or a specific list of user accounts that are in a specific group?
View 1 Replies
View Related