Server :: How To Different Users See Different Files
Jan 13, 2010
There's something I would like to do. It's simple, it MUST be possible. I can't find any way to do it by Googling it. I'm must be looking for it in a wrong way.Let's say I have a directory called dir1. In it, I have these files: A1, A2, A3 belong to user "userA", files B1 and B2 belong to "userB". Both users are in group "groupNO", but the files are in group "groupYES".
What I want is this: if someone tries to mount the folder by NFS (or could it be done with Samba?), as userA, they can only see (or read) files A1, A2, A3,as userB, they can only see (or read) files B1 and B2,as a user in groupYES, they can see and open all the files.This is just the principle. If I need to sort them into directories or use another program on the server-side, that's fine with me. I just want the user to just have to mount the folder over the LAN with a user name and password. I'm fairly sure I can do it by SFTP, but, again, I want the client to be able to MOUNT the folder on their local machine over the LAN no to user a special client.Is that possible? Do I need LDAP? (From what I understand, LDAP is separate from the OS-level mounting process, which is not what I want.)
View 6 Replies
ADVERTISEMENT
Nov 25, 2010
I've setup a Lamp Server for Testing, The Lamp Server is Up & Running on CentOs 5.5
I am now trying to setup a VSFTP server where local users can upload files to there home directory so that Apache can serve web pages straight from the directories of system user home/accounts giving users the ability to run their own web sites which are hosted off the main server [tutorial here: [url]
So far i have been able to serve/display index.html files from the users home directory [url] but so far i cant upload files to any user home directory, every time i try to upload a file with filezilla i get this error message: 553 Could not create file. Critical file transfer error
I have searched online for similar problems like mine and so far i've tried alot of the solution but none seem to work. I'm confused, dont know where i went wrong, i put the users in a group called ftpusers and here are the permissions on the users (test, ftpuser & testftp) home directory. have a look an tell me where i went wrong :(
Also the root directory where the web pages are served from is called public_html here are the permissions
Here is my vsftp.conf file can someone check it to see if i made any errors in there:
View 14 Replies
View Related
Feb 21, 2011
I have a vsftp server running, and we have problems sporadically where people (not the person who uploaded the file) cannot delete files uploaded from OSX machines. We never have this problem with files uploaded by PCs. Anyone ever heard of this or know what I should check? The users uploading the files all belong to the same group. Also, I think if you log in to the FTP server with another OSX machine, it will let you delete them. I'm looking at the folders now, they have drwxrwxr-x. When i try to delete them from a PC, it gives me a 550 Remove directory operation failed.
View 14 Replies
View Related
Mar 21, 2010
I'm trying adjust my proftpd server's settings, that anonymous users could download what they need smoothly.
A small problem made me so bemused:
In the configuration file of proftpd, I place the following setting section in the <anonymous> section,
Code:
After restarting the proftpd server and applying the configuration, I try downloading a file in IE browser. Sometimes, it prompts a saveas dialog, and everything was okay.
However, it occasionally prompts a login form instead of a SaveAs dialog. This makes our customers confused greatly.
So, how could I prevent browser from prompting login form when anonymous users try to download files from our ftp server?
Quote:
OS: CentOS 5.3
Server: ProFTPd 1.3.1
View 1 Replies
View Related
Jan 18, 2010
When I have different people log into our ftp and browse to the same folder, some people see the files inside, some don't. all the user accounts are in the same group, which has permission to this folder. but the one user who can see the files is the owner. how can i fix it so everyone in that group who's the owner of the folder can see the files?
View 10 Replies
View Related
Oct 1, 2009
Because I was browsing around in KDE and found out that I can view other users files and they can view mine.
View 1 Replies
View Related
Jun 28, 2009
script which can add a secondary group to all existing users except system users in linux.
View 5 Replies
View Related
May 18, 2010
I have inherited a RedHat 5.4 server that is having an odd issue. Root and all of the user accounts can log in via SSH. Not a single account can log in via the console (sitting in front of the server). If I bring it up in single user made, I can log in with root all day long.
I want to say that this has something to do with PAM, but this is when I play my "Noob" card. Could anyone possibly steer me in the right direction to figure out what is going on?
View 2 Replies
View Related
Jun 26, 2009
Im trying to config my intranet to be accessible from inside the network (lan) without need of password and ask for a passwd for those who are viewing from Wan ....
Today my intranet can only be accessed from Lan, external access give me an Unauthorized message, I took look around, try #irc and still can get the appropriated help, I hope that someone here could help me on that...
A piece of my config:
Code:
View 4 Replies
View Related
Jan 13, 2010
Let's say I have a directory called dir1. In it, I have these files: A1, A2, A3 belong to user "userA", files B1 and B2 belong to "userB". Both users are in group "groupNO", but the files are in group "groupYES".What I want is this: if someone tries to mount the folder by NFS (or could it be done withSamba?), as userA, they can only see (or read) files A1, A2, A3,as userB, they can only see (or read) files B1 and B2,as a user in groupYES, they can see and open all the files.This is just the principle. If I need to sort them into directories or use another program on the server-side, that's fine with me. I just want the user to just have to mount the folder over the LAN with a user name and password. I'm fairly sure I can do it by SFTP, but, again, I want the client to be able to MOUNT the folder on their local machine over the LAN no to user a special client.Is that possible? Do I need LDAP? (From what I understand, LDAP is separate from the OS-level mounting process, which is not what I want.)
View 1 Replies
View Related
Mar 26, 2011
I just realized that I can access other users files and they can access my files simply by using the console to navigate the file system, Its not that big a deal, I am the only one using the computer but this seems like something is not configured correctly. Should each user be able to look at and modify each others files by default? (On Xubuntu 10)
View 7 Replies
View Related
Jul 12, 2011
I am having problem to collecting email from remote POP3 (all the emails for a domain is stored here) and distribute it after collecting to several users defined to Linux server. I have install postfix in Linux server for email distribution.
View 3 Replies
View Related
Feb 22, 2010
I would like to set disclaimer like content in my meral mail server, so that all the users should be able to get that content automatically in their outgoing mails.
View 3 Replies
View Related
May 18, 2010
I have an issue with users logging into a server. There are multiple (5 or so) database admins that have to log into a windows 2003 server and from there log into a red hat server. Once they are in the rhel box they execute an app (let's say xclock) that gives them an xwindows session on their desktop. Currently only one person can do this at a time, but they have asked me to configure it to allow multiple users to log into the red hat box from the windows server and run an xwindow.
View 6 Replies
View Related
Apr 12, 2011
I read the log
Code:
I found this print out:
Code:
The line in bold is the security issue. There is only 1 user account on the system. There should only be 1 user logged in, not 2 users logged in. The remainder of the log file lists 1 user logged in, for similar log output. 2 users logged in does not appear again in the log file.
Does the second line of bold indicate that an attempt was made to log in to the system using SSH?
There was an internet connection interruption (no service) around the time of the log file event. The service did return, later.
Does that line indicate that an unauthorized user logged in to the system?
View 3 Replies
View Related
Apr 12, 2011
I want to have a shared area for movies, music, etc. where files are available for all users. What is the best way to do this? I've tried a few different things, (ie. creating a folder and sharing it among a group, but for some reason it doesn't seem to work the way I want it to. I'm now thinking maybe have a partition like /share and set the permissions to all in fstab, but I'm not sure.
View 9 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
Jun 14, 2010
I am running Ubuntu 10.4 I am coming from a windows background and I want to know what is the proper way to share files among multiple users on the same Linux box. In this particular case, I will be sharing jpg images.
I do not have any shares defined and I am not (to my knowledge) running Samba.
View 1 Replies
View Related
Mar 28, 2011
I have two files with user DN's that exported from two different LDAP directories. I wanted to write a script that reads(checks) users (cn=user1) in file Ack to see if users(cn=user1) exists in file B and give me nice output with what users are missing in file B.I have around 30k users in file A with following format..Quote:
cn=user1,ou=some,o=org
cn=user2,ou=some,o=org
cn=user3,ou=some,o=org
[code]...
View 7 Replies
View Related
Mar 22, 2010
I would like to know how to link linux users to have their windows folder (on fileserver) into linux..I have a windows fileserver which hosts AD users home (personal) folder.I also have linux (redhat) with SAMBA. users have their home folder in linux but also want to access their home folder in windows. Is there any solution which automatically creates links in linux home folder, when a user logs into linux he can also view / edit his files in windows home folder.I know to smbmount but there are 500+ users and creating smbmount / smbclient for each would be time consuming also many of the users are dynamic (added / deleted frequently).
View 1 Replies
View Related
Apr 16, 2010
Amavis-new on my mail server is marking my emails as spam, like so:
Quote:
Apr 16 12:15:52 myserver amavis[30979]: (o3GIFltt008868) Blocked SPAM, AM.PDP-SOCK [xx.xx.xx.xx] [xx.xx.xx.xx] <myemail@mydomain.com> -> <myfriend@hisdomain.com>, quarantine: spam-w1hxRn9Pr4P6.gz, Message-ID: <4BC8A9E8.2070108@mydomain.com>, mail_id: w1hxRn9Pr4P6, Hits: 7.844, size: 6763, 1986 ms
The mail server is not on my local LAN, and all the primary users are roaming. They connect via TLS auth, which is required to make a sendmail connection to my server. I could whitelist all addresses in my domain, but then anyone spoofing my email wouldn't be seen as spam. How do I simply tell amavis-new and/or sendmail not to spam scan TLS authenticated users?
View 4 Replies
View Related
Mar 14, 2010
I occasionally have friends using my home computer. They just use my account.There are some files that I want to hide/protect from people using my computer. It's not that I need highly secure encryption, it's more like I want to make sure people don't accidentally see my porn collection if they borrow my computer to check their email.Is there a way to set up a folder such that it's required to enter a password (e.g. the admin password) to see it's content? Probably I could change the owner of the folder, so that I can't access it without password?How do you protect/hide your secret or intimate files?
View 7 Replies
View Related
Mar 23, 2010
I have a server setup with all my web development stuff in /var/www and in several sub-folders within that. (each project having it's own folder)It works great with one FTP account. But recently I've been getting help on a projects from a buddy of mine that freelances, and have made him an FTP user account as well. All is fine, except for when he tries to edit a file and gets a permissions error.
Here's the issue, I don't want us to have the same FTP login, but all the files are currently owned by my user name. So, when he logs in to edit a file, he can't because I'm the owner, and the files are set to 744. Will I cause any harm by adding both users to the same group (www-data) and chmod'ing the files to 775 so that we can both access and modify the files?
View 2 Replies
View Related
Jan 8, 2011
It seems that AppArmor can't be effectively used to protect read access to files from users (including roots). It is possible to create a profile for, eg, 'cat', but then the users can use 'less'.Is this true? Should use SELinux instead for this?
View 5 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
May 16, 2011
I have to create a script to identify those users who have un-sanctioned (forbidden) files in their home directory. I tried something like this (this is a try and I need some opinions):
Code: #!/bin/bash
user_belongs() {
if `groups $var1 | grep $var2`
then
return 0 else
return 1
fi
} .....
View 1 Replies
View Related
Oct 25, 2010
i've been wondering how do i know if some users create/modify/delete file/directory in linux, i've been using pyinotify in python script.this script like the example from the manual:
Code:
#!/usr/bin/python
import pyinotify, os, time
[code]...
View 10 Replies
View Related
Nov 29, 2010
How would i remove rwx permission for group and other users for all hidden files (except . and ..) inside /root using a one line command.
View 4 Replies
View Related
Sep 11, 2010
how the file is generated or what it contains is not important at this point.The important question is how to prevent the file from being downloaded and its contents from being displayed in the browser window?Since it is not recognized by the web browser so it is downloaded on the system. That way, what the script does is exposed to the outside world.Okay, I usually keep such scripts in../cgi-bin/. But for files (text files, in the example) which are being uploaded by a user should not be downloaded by another user.
View 10 Replies
View Related
Oct 23, 2009
if it is possible to send automatic email for users when files added in ftp directory in linux
View 2 Replies
View Related