Ubuntu :: Create A Directory That Can Be Written To By Multiple Users

Feb 6, 2010

I have a small ubuntu server setup and I would like to create a directory that can be written to by a select number of users. I have a backup directory setup and I want to enable my account as well as three others to be able to read/write to that directory. So far I haven't had any luck.

The owner of the backups folder, a directory on a separate disk mounted under /srv/storage, was owned by root and under the root group. I added the group backups and then changed the backups directory group to backups. I then used chown to change the backups directory to 775 to enable group members to write to it. I then tried to touch a file in the backups folder but no such luck. I did notice that when I run groups, my user account isn't shown as belonging to backups but is shown under the /etc/group file. I even made sure the GID of backups is in fact below 1000.

Anyone have an idea on how to create a shared directory that everyone can create, modify and delete any file? I believe my problem is related to the fact that root is the owner of the backups directory.

View 4 Replies


ADVERTISEMENT

Red Hat / Fedora :: How To Create Multiple Users

Aug 27, 2010

how to create multiple users in linux

View 4 Replies View Related

Ubuntu :: Create Ftp Users With Assigned Directory?

May 17, 2011

i wanted to make some ftp users that will be hooked to directory and wont be able to move backward and to see the system files

ex
user : Eyal
Directory : /home/Eyal/Eyal
so he cant get to /home/Eyal
but he can go to /home/Eyal/Eyal/cstrike

View 4 Replies View Related

General :: Setting Permission For Multiple Users To A Directory?

Feb 25, 2010

I'm having trouble breaking down permissions in linux. Here's the scenario. I have two users: UserA & UserB with each having to ownership and access to directories myDirA and myDirB respectively.

UserA --> /source/myDirA
UserB --> /source/myDirB

I need to set the permissions so that userA can access myDirA and myDirB. There are other users and directories but they should not be able to view outside of their own directories (which is the way it is now). I don't have groups set up for them and I'd rather not change anything else but just the permissions.

rwxr_x_r_x UserA
rwxr_x_r_x UserB

They're read/write/exec permissions are identical.

View 14 Replies View Related

Red Hat / Fedora :: Cannot Create Directory /home/users/newuser

Apr 5, 2011

CentOS 5.5

I am trying to add new users, when I use the command: # useradd newuser

I get: useradd: cannot create directory /home/users/newuser

I went to my /etc/skel and when I use the command ls it displays:
home

and when I go into /etc/skel/home I have the two directories that I created.

I am logged in as root, and when I ls cd / it shows /home, when I cd into /home everything looks normal.

How do I get this error to stop so I can add new users?

View 7 Replies View Related

General :: Multiple Users To Create Directories Over SFTP So The New Directories Keep The Same Permissions?

May 15, 2011

I want to make a webserver with multiple users allowed to login through SFTP to a specific folder, www.Multiple users are added, lets say user1 and user2, and all of them belonging to the www-data group. The www directory has an owner www-data and a group www-data.

I have used chmod -R 775 on the www folder, but after I try to create a folder test through my SFTP server (using Filezilla) the group of the directory created has only r and x permissions, and I am not able to log in with the second user user2 and create a directory within www/test due to a lack of w permission to the group.

I also tried using chmod 2775 on www directory, but without luck. Can somebody explain to me, how can I make it so that a newly created directory inherits the root directory group permissions?

View 2 Replies View Related

Ubuntu :: Cron Entry - Doesn't Seem To Be Running - Don't See Any File Gets Written To The Log Directory

Oct 4, 2010

I have the following cron entry but it doesn't seem to be running:

Code:

The script does exist. And so does the directory /home/usr/log and writable. /var/log/syslog only has a bunch of these:

Code:

I don't see any file gets written to the log directory. That suggests to me that cron didn't run the job, as confirmed by /var/log/syslog.

View 9 Replies View Related

Programming :: Create Regular Expression - Get English Written Sentence Only Using Preg_match

Aug 7, 2010

From the following code

Code:
<table width="100%" border="0" cellspacing="3" cellpadding="3">
<tr>
<td colspan="2"><p style="width:460px; display:block;">

I wan to get this text only from the whole html code. </p></td> From the above code I want to get that english written sentence only using php preg_match or anything other which makes it possible. I've tried following so far but doesn't work

Code:
preg_match("#<td colspan="2"><p style="width:460px; display:block;">[ .]+</p>#i", $aboveCode, $match);

View 5 Replies View Related

General :: Finding A File Which Is Being Written Recently In Directory Of 1000 Files?

Apr 13, 2011

How to find a file which is being written recently in directory of 1000 files?

View 8 Replies View Related

General :: Use 'iw' To Create Multiple Virtual Interfaces To Connect To Multiple Networks?

Oct 26, 2010

I'm trying to connect one computer to two others in an ad-hoc infrastructure.

[computer 1] ---- [computer 2] ---- [computer 3]

computer 2 is running Linux and has a single NIC wlan0. I want to it to connect to both computer 1 and computer 3 so each computer can talk to the other. No switch is available so it needs to be an ad-hoc setup.

[Code]...

View 1 Replies View Related

General :: Use Mkdir Command To Create 'local' Directory In /usr - There Are Error - Cannot Make Directory

Jun 16, 2010

I am a student studying computer science course.

Well, I am facing problem when doing lab questions.

I must use DLXLinux bundled in Bochs (bochs.sourceforge.net).

I am required to use the /usr/local directory.

In /usr directory, there is no directory named 'local' but there is one thing called 'local@'. So, when I try to use mkdir command to create 'local' directory in /usr , there are error "cannot make directory.....".

Look at my screenshot at [url].

View 9 Replies View Related

Software :: Error - Mkdir: Cannot Create Directory `/dev/cgroup/cpu/user/5900': No Such File Or Directory

Jun 21, 2011

I get the following error whenever I launch bash:

Code:
mkdir: cannot create directory `/dev/cgroup/cpu/user/5900': No such file or directory
bash: /dev/cgroup/cpu/user/5900/tasks: No such file or directory
bash: /dev/cgroup/cpu/user/5900/notify_on_release: No such file or directory
It seems like it's probably from this part of .bashrc:

[Code]...

What does this code do, why, and what's causing it to go wrong?

View 7 Replies View Related

General :: Create A Directory Named Like His Parent Directory

May 26, 2011

I need to create a directory named just like his parent.

Example:

I tried this but because there is "Space Characters" in the name of Parent directory, my script fails.

View 8 Replies View Related

Ubuntu :: Multiple Users Not Working?

Apr 25, 2010

I had Ubuntu 9.10 running ok, but I've decided to try Lucid Lynx with Kubuntu and was quite impressed with the quality of KDE. Everything worked out of the box also.Until I tried to login with two other accounts this computer had...With one of the users I get both errors seen on the snapshot. One regarding the network manager (which I think it was given just because it was already started by another user), and the ibus error, which completely locks the user from accessing any other drive or usb disk.For the third user, even if creating it from scratch (not re-using his /home), I get an error:

Code:
kstartupconfig4 does not exist or fails. The error code is 3. Check your installation.
/home is in another partition that's been used since 7.10 I think. I did cancel all /. from

[code]...

View 1 Replies View Related

Ubuntu :: Cron With Multiple Users?

Oct 31, 2010

Let's suppose that a machine has three users:

(1) david
(2) dan
(3) joel

The computer now restarts and during the log-in process, I choose to login into dan's account.

At this point, when I am logged in into dan's account, will Ubuntu run the crontab jobs that belong to david / joel?

View 4 Replies View Related

Ubuntu Multimedia :: Sound From Multiple Users On Same Box?

Feb 3, 2010

Ok, for various (mostly security) reasons I was experimenting in running certain apps as a different user id (on Karmic).

I can get X to forward to my main session without a problem but I cannot get the sound to work. Sound works fine in my main session, but when I run sound as another user I get plenty of errors like:

PHP Code:

ALSA lib pcm_dmix.c:1008:(snd_pcm_dmix_open) unable to open slave 

I am not a big linux GUI person, so I have rarely dealt with sound systems under Linux. What is the simplest way to get this to work in a relatively secure way? (I do realize that my security is already a bit compromised by allowing the secondary user access to X, but that can't be helped)

View 3 Replies View Related

Ubuntu :: Adding Multiple Users Terminal?

Jun 1, 2010

I want to add users from the command line, I know I can use the adduser for individual users, but if you have 50 or more there must be another way. I'd rather not use the GUI.

View 2 Replies View Related

Ubuntu :: Multiple Keyboard Layouts For Different Users SSH

Feb 7, 2011

I work in a company where the Ubuntu server is managed by different people around the world.
Day-to-day admin : me in France with an Azerty keyboard
Level 1 24/7 support : team in US with a Qwerty keyboard

Of course there's commands like sudo dpkg-reconfigure console-setup but this one affects the whole system. I've searched quite a lot on how to change the keyboard layout for one person only, but it always relates to the Gnome interface. So I'd like to know if you knew a way to locally change the keyboard layout, only the SSH connection of the user? Maybe in the startup scripts of the bash session, or even better, when the user types his user login (so it detects his language and automatically switches to the right keyboard).

View 5 Replies View Related

Server :: Setting Up Multiple (2-3) FTP Users On Ubuntu 9.04?

Dec 22, 2009

setting up multiple (2-3) FTP users on Ubuntu Server 9.04 I currently only have ONE FTP user, but I need to have 2.

View 1 Replies View Related

Ubuntu :: Create And Log Onto New Users In 10.10?

May 28, 2011

How do you create and log onto new users in 10.10? Is it possible to change the user that logs on at startup?

View 4 Replies View Related

Ubuntu :: Give Multiple Users Access To Drives?

Aug 11, 2010

I just created a 2nd user on my computer. I've got the hard drive that ubuntu runs on, and then a 2tb drive for media. If the 2tb is mounted on my desktop, it won't show up on his desktop even if I'm logged out. It won't show up on his unless I unmount on mine.

If I'm logged out I'm obviously not using it. So why doesn't it show up? He has all privileges. Is there a way to make this work without having to unmount?

I'm running karmic btw. If you need computer info let me know what to type into the terminal and whatnot and I'll paste it all here!

View 4 Replies View Related

Ubuntu :: Multiple X Sessions - Auto Login 2 Different Users

Oct 11, 2010

I have a small problem regarding multiple X sessions. I want 2 X sessions started automatically on boot with 2 different users auto logged in and 2 different sessions running.

On first X session I would like to have gnome running with user1
On second X session I would like to have xbmc running with user2
So far my computer logs user1 in to a gnome session via gdm on boot. But then I have to launch a tty, log in as user2 and then start xbmc in a new X session.

How to make it work? I would also love to have the second X session active after boot. I am running Ubuntu 10.04.

View 1 Replies View Related

Ubuntu :: System Freezes After Log Off With Multiple Users Logged In

Oct 16, 2010

On Ubuntu 10.04 when there are more than just one user logged in, if one of users logs off system hangs with a black screen.

After I reboot the machine and log in again, just after GDM login screen I get a window with a message about PowerMeter crash, with suggestion to 'cancel' and 'log off'. Only 'Log off' works, i.e. I'm successfully logged in.

Last entries from system.log before system freeze are:

Code:

View 9 Replies View Related

Ubuntu Security :: Setting Up Keys For Ssh For Multiple Users?

Jan 30, 2011

Ubuntu 10.10 Server is loaded. Openssh has been loaded.

I have multiple users which need access to server via ssh.

My impression from reading about ssh is that a key needs generated for each person. Thus, each key will have a passphrase that is unique to them.

In /etc/ssh/sshd_config, the default sshd_config suggest using:

%h/.ssh/authorized_keys

My assumption is %h is a variable that will allow the current user to use the public key stored in his home directory under the .ssh folder in a file called authorized_keys. Is their a command string that automatically populates the authorized_keys file?

I am surprised that even though there are a number of hidden (e.g. .****) files located in the home folder, there is not one automatically generated as .ssh. It appears I have to create that directory myself. I am especially surprised by this since it appears the instructions for generating a key seems to load the key in the home directory instead of proceeding to create a .ssh folder to store the keys in.

It is not clear, but it appears that the public key needs to be copied or appended to the authorized_keys file, but, using the scheme above, the public key needs to be copied or appended to each users authorized_keys file instead of appending all public keys to a single authorized_keys location.

It then appears that each persons authorized_keys file needs permissions set to 600.

It also appears that if I decide to use RSA instead of DSA, I would do the same thing above but would use authorized_keys2 file instead.

Why doesn't the home folder which gets automatically set up for each user automatically get a .ssh folder generated? i.e Why does it have to be created by hand? Does it need the same permission on the .ssh folder? ie 600?

My aim is to allow many to log on via ssh simultaneously and then allow many to simultaneously vnc into their respective gnome desktops.

View 6 Replies View Related

Ubuntu :: Adding Multiple Users Using Batch File?

Oct 26, 2010

Idealy I want to create a batch file which would read the list and create a user and a password.

I know i need to create the file using the vi command and using the useradd facility to add the users however where i go from there i am lost.

View 5 Replies View Related

Security :: Having Multiple Users For One Session?

Oct 12, 2010

is that possible to have multiple users for one linux session? and how can i do that ? it's possible to creat virtual users for a session ?

View 2 Replies View Related

Ubuntu :: Multiple Users Sharing The Same Music/Pictures/Video?

Mar 7, 2010

We have a collection of music for the entire family. Can each user's Music folder point (for lack of a better word) to the same physical directory? Can I do this with mounts, or is there a better way?

View 4 Replies View Related

Ubuntu Servers :: Samab With Multiple Users Accessing Different Directories?

Apr 16, 2010

I currently have samba setup and connecting. What I am trying to do is have multiple users with access to different directories. For example , let's say there are folders A B C on my Linux machine. I want one guy to see A and C and another guy to see B and C and a third guy to see them all. But I want each user to have access to change delete or execute the files within these directories that they have access to

View 4 Replies View Related

Ubuntu :: Sharing External NTFS Drive Across Multiple Users?

May 26, 2010

I have an external USB hard drive at /dev/sdb1 (NTFS)

2 users: johnny, audio

for some reason this drive is mounted at /media/TREKSTOR_ with johnny as the owner. I can't seem to chown the drive to audio. If I unmount the device, and remount it, the owner is set to johnny again. I need to access this drive from the audio account.It's a 1TB drive, so I wouldn't be able to reformat it to EXT3 easily as it's almost 60% full.

View 1 Replies View Related

Ubuntu / Apple :: Share The Same Shared Folder Between Multiple Users?

Aug 13, 2010

I'm using a Ubuntu Desktop 10.04 32-bit machine as my file server. It is sharing a few folders stored on a USB NTFS drive using Netatalk. The client machine is running MacOS 10.6.4. I have only one user on the Ubuntu machine, but the Mac machine has two users. I wish to share the same network share between the two Mac users, while both are logged in (they switch between one another without logging the other one out).

I created a login item on both Mac user accounts to automount the Ubuntu shared folder and used the same Ubuntu user account for authentication on both Mac accounts. This is the problem: When the first Mac user logs in, the shared folder automatically mounts with no problems. However, when the second user switches to their account (without logging out the first user) the automount mounts the folder with a red "No Access" sign on the folder. The only way to resolve it is to eject the mount and manually remount.

This is not the end of the world, but I would like to resolve this issue if possible, so that the users get a smoother experience. The way I tried to resolve this: I thought that maybe Netatalk does not allow the same user to connect more than once from the same IP, so I set up an additional user on the Ubuntu machine. when I connect to the Ubuntu server using the new user for authentication, the only share available for the user is their home folder. The other shares are not available.

I therefore tried to configure permissions using the AppleVolumes.default by explicitly giving all users the "allow" permission for all shares and restarting the Netatalk service, however the new user still has access to nothing but their home folder. How can I share the same shared folder between multiple users?

View 7 Replies View Related







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