Ubuntu Installation :: Creating Directories Owned By A Specified User On SSD?

Jul 15, 2010

I have just installed an SSD as a secondary hard drive and formatted as ext4. (the Ubuntu installation is on a different drive) Im very new to linux, Could someone inform me how I would go about creating a directory on the SSD that is owned by the user 'Test user'

Im sorry if this is a daft question, im just moving from windows to linux and struggling a lot.

View 3 Replies


ADVERTISEMENT

Ubuntu :: Creating Directories Owned By Specified User

Jul 15, 2010

I have just installed an SSD as a secondary hard drive and formatted as ext4. (the Ubuntu installation is on a different drive)how I would go about creating a directory on the SSD that is owned by the user 'Test user'.

View 8 Replies View Related

Ubuntu Servers :: Jailkit Msg: Directory Not Owned By User But Directory IS Owned By User

Apr 9, 2011

I'm trying to jail a sftp user. All I want is for my daughter-in-law to be able to download pictures of my grandson on his step-uncle's motorcycle. But I don't want her browsing around. She's not a techie, but she's smart enough to catch on how WinSCP is looking at my files. I've set up the jail using jk_init, adding ssh, sftp, bash, netutils, basicshell, jk_lsh.

The physical root of the jail is owned by root, as are all the binaries loaded by the jk_init. The user's home directory is owned recursively by the user and is writable only by the owner. The passwd and group files are in the jailed /etc and populated by the user's lines. Shell is bash, and bash is there too. The error message must be coming from some other problem that's not notifying, but what?

View 4 Replies View Related

Ubuntu Installation :: Files Owned By User 1000 - No Access

May 25, 2010

Running 9.10 now, I'd like to do a clean install of 10.04 on my dual-boot (with XP) Compaq notebook. As a test, I burned an ISO image onto a 1-GB stick and booted to 10.04 from it. It works just fine, except that the directories in the Documents folder on my hard drive are owned by "user 1000", and "he" grants me access to only about half of them.

Is this problem likely to persist if I actually install 10.04 rather than just running it from the stick? If so, what can I do about it? Second question: am I correct in understanding that if I still need to access my Ubuntu partition from XP, I'd better stick with ext3 for this install rather than going to ext4?

View 2 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

Ubuntu :: Setting Up Shares For Non-user Owned Folders?

Mar 11, 2010

I've setup a Moodle server on 9.10 server, and have been able to share user folders back to the windoze machines on the home net. What I'd like to do is share the Moodle main folder (and descendents) likewise. The problem is that it's owned by root. For ther user folders, as long as the owning user was logged in they were able to mark the folder as shared and everything worked very smoothly. When I try to mark the moodle folder as shared, no suprise I get a permission error. Is there a way of doing a "sudo su" from the GUI desktop to allow this to happen? Or do I have to set up the share from a command line (after having done a sudo su)? Can anyone give me the magic commands needed to do such?

View 1 Replies View Related

Ubuntu :: Editing Root Owned Folders With A User Program?

Apr 10, 2011

I'm using the IDE Netbeans (text editor) on my /home/michael Ubuntu account. I'm trying to open a file with Netbeans that's owned by root, I can't do this as I expected. So is there a way to run NetBeans as root, or is there a way to give netbeans permission to open/save files owned by root

View 1 Replies View Related

General :: Setuid Process Cannot See Processes Owned By That User

Nov 2, 2010

I would like to give a non-root user (nicollet) the ability to detect and send a signal to processes started by Apache2 (those processes are FastCGI scripts and the signal tells them to empty their cache). The processes are owned by the web user (www-data), and I'm running on Debian unstable.

I can't find any way to have the nicollet user see those processes.

The processes are running and can see by both root and www-data:

root@linux-01:~# ps -Af | grep baryton
www-data 17649 17648 0 10:27 ? 00:00:00 baryton
www-data 28145 1 0 Nov01 ? 00:00:12 baryton --bot
root 18701 18700 0 10:46 pts/0 00:00:00 grep baryton
root@linux-01:~#

[Code]....

The most surprising is that the grep process is indeed run by www-data (because it's started from a setuid executable) and is visible, but the baryton process isn't.

What's going on here? Why can ps run by www-data show those processes, but ps run by a setuid executable running as www-data cannot, when it's started by nicollet?

View 1 Replies View Related

General :: Execute A Command On X-session Owned By Another User?

Jul 13, 2011

Is possible (by root of course) to run a command from console, that will be executed on X-session owned by another user on the same linux box/machine ? Example: Can root open xclock for another local user logged into X11 ?

View 2 Replies View Related

Programming :: Shell Script That Deletes All Files Owned By A User?

Jan 14, 2010

the script should take as input in the begginig the username of the user and then deletes all the files and folders from the user in every place he has them. script must also check if the parameters have been given correctly (only one and that one must be a username) Doesnt all the files of a user exist on a folder with his name? what if i delete this folder? Will something like this work?

Quote:

E_NOARGS=65
if [ -z "$1" ] # Exit if no argument given.
then
echo "Usage: `basename $0` directory-to-copy-to"

[code].....

View 7 Replies View Related

Ubuntu Installation :: Creating More Than On User During Or Right After Install

Mar 15, 2011

I have a requirement to create more than one user (one initial user with sudoer privs and one "user" user that has no special privs) upon installation of xubuntu 10.04 or 10.10 (doesn't matter). My goal is to create a "automatic" installation process with as little user interaction as possible through use of preseeding and remastersys so that all the programs and their configurations are set upon first boot. If this is not possible, (which I don't believe it is, but it's Linux!) then I think I can make use of a bash script that will run on first boot of the operating system and then delete itself so that it does not run again. My questions are:

* Is there anyway to create more than one user upon or during installation?
* If no to the above, how would I go about making a bash script that runs on first boot and deletes itself after being ran?

View 2 Replies View Related

General :: Creating Multiple Directories?

Mar 28, 2010

I need to create subdirectories in about 300 existing directories - the subdirectory will have the same name in all 300 existing directories. How do I do this using the mkdir command using a regular expression or globbing?

View 3 Replies View Related

Ubuntu :: Rsync Creating Wrong Permissions For Directories?

May 1, 2010

I try to use rsync for backing up some directories and I have to following problem: some files have permissions that prevent me from running rsync under my own user id. So I run it under root using the option "-a" which according to the man page should preserve the permissions, owner and group information:

However, when I run this under root, the directories created in the backup location get user root and group root while ordinary files keep the original user and group. What am I missing here? How can I get rsync to preserve the user and groups for all files, including directories?

Here is a command to illustrate my problem
Code:
sudo rsync -a /home/youruser /tmp

If you try that and terminate with Ctrl-C after a few seconds, there will be a directory /tmp/youruser where the directories contained within are owned by root group root.

View 2 Replies View Related

General :: Giving Ownership While Creating Directories?

Jan 27, 2010

Is there any way by which one can give ownership while creating directories itself. It should be one command otherwise it requires root login to change ownership of a directory.

View 4 Replies View Related

Server :: SVN And SSH - Creating Directories For Projects In Repo

Feb 18, 2011

I am setting up an SVN server (svn+ssh) that will be used by students at the university where I work. I was considering in the beginning, one single repository and eventually creating directories for each project inside the repository. It seems to me now, that it is not very secure way of doing things. The directory on the server will be with rights 770 and this means that every student can come on the server and sweep out the whole repository.

Also mistakenly or not, every student can 'svn delete' the whole repository, which could be a nightmare to recover from. An issue might be to create groups and then assign users to groups and then create many repositories and each repository to be assigned with group. This means that I will have to manage tens or hundreds of repositories -- maybe not very common task. What is an optimal solution for this working environment.

View 5 Replies View Related

Ubuntu :: Automate Creating Directories Based On File Names And Moving Files Into Them

Apr 30, 2011

I have a bunch of .7z files in a directory, and I need to put each one of them into a separate directory, named after the file (without extention). The command line I use:

Code:
find . -type f | mkdir `sed -e "s:..(.*)...:1:"` ; ls | grep .7z | cp * `sed -e "s:(.*)...:./1/:"`
Copying fails though:

[Code]....

PS. I don't want to use scripts, I want to do it using simple commands and piping.

View 5 Replies View Related

Software :: Creating A .deb File That Extracts Files To Pre-determined Directories?

Oct 21, 2010

I am wondering how I would go about creating a .deb file that would extract it's contents to two different folders. I would have one file directory that should be extracted to /opt and I have a second that should bextracted to the current user's home folder and /etc/skel - How would I go about doing this?

View 1 Replies View Related

General :: Command Line - Create Directories That Don't Exist While Creating A New File?

May 8, 2010

I can do:mkdir messages and then: touch messages/hello.txt Is there a command that will do both - create the directory if it doesn't exist, and then the empty file? Something like: touch -p messages/hello.txt

View 1 Replies View Related

Software :: Create User Without Creating User Home Directory?

May 12, 2011

i have rhel 5.2 and i want to create user using useradd command without creating user home directory and not throwing any warning/error about not creating any home directory.i have tried useradd -u "$NEW_UID" -g <gid> -d "/home/$1" -M "$1"where $1 is user name and $NEW_UID is i am calculating.it throws error as useradd: cannot create directory /home/$1which i dont want to come , how to prevent this?

View 1 Replies View Related

Debian :: Get Rid Of Some Xdg User Directories

Oct 16, 2015

I need to permanently delete the following dirs in my home, that I really do not need (want!):

~/Documenti/Immagini
~/Documenti/Musica
~/Documenti/Video

how to do that?

I think I've learned that these directories are 'predefined' and eventually recreated at each login (even when deleted they appear again and over again, pretty annoying indeed...)

[URL] ....
[URL] ....

Now I would like to avoid the default creation of those dirs but I did not understand how to edit the local and global configuration files controlling this behaviour (I think)

Code: Select allgedit ~/.config/user-dirs.dirs

# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.

[Code] .....

View 7 Replies View Related

General :: Creating A Script To Move Or Copy Files Into Multiple Directories Below The Files?

Aug 25, 2009

How can you create a script to move or copy files from a main directory into multiple directories below the main directory.

View 7 Replies View Related

Fedora :: Add User For Ftp To Limited Directories?

Jul 22, 2010

How do I create a user with ftp access and/or Putty access that can only see and change certain directories. I want to create users to work on my website but I don't want them to have access to all of the folders.

View 2 Replies View Related

Server :: Specify Several Different User Login Directories?

Jan 25, 2010

I'm having trouble setting up a vsftp server correctly. What I want to do is allow a number of users to log on (no anonymous user) and each of them to be taken to their own "top level directory" from which they can not escape.

I've got most of this working, but I can't find a way to automatically transfer each user to *their* working area. The "local_root" directive doesn't quite do what I want as everybody has to share the same working area (potentially users could interfere with each other). On the other hand I don't want each user to work from their home directory because there are loads of special files there that I don't want users playing with.

To add one extra compilation, I'm also running an html server on the same machine. One of the directories the html server can see is one of the ftp area root directories (So what I'm trying to do is give one special user ability to ftp files onto the html server. Other users must *NOT* have this ability)

View 6 Replies View Related

Ubuntu :: Gnome -- No Panel, Menus, Etc. (No Default User Directories)?

Nov 4, 2010

When I select "Ubuntu desktop" from gdm, I get a blank screen (with wallpaper) and no evident functionality. The mouse pointer is present, but I have no panel or desktop menus. The file .xsession-errors contains the following:

Code:
/etc/gdm/Xsession: Beginning session setup...
No default user directories

[code]....

View 7 Replies View Related

Ubuntu :: Script To Create User, Directories And Site In Apache?

May 24, 2011

I've had a recent idea to have PHP take information from a form, save it to a file, which in turn is read from a local script as root (cron) which will create the user account, proper directories, add the website to the Apache sites, and reload Apache. anyone actually accomplished this before? And if so, can I get some links or some ideas to possibly help me on the process of getting started?

View 1 Replies View Related

General :: Cannot Create User Home Directories?

Jun 4, 2010

Why when I command "useradd -m barth" do I get the error message: "cannot create directory /home/barth"? It only does this when a partition is mounted to /home.

View 14 Replies View Related

Server :: PHP Files Not Being Processed In User Directories?

Mar 5, 2010

For some reason, my user directories don't seem to process php files. For example, server/~reduxtion/index.php forces the browser to download the file while server/index.php is fine.

View 1 Replies View Related

Ubuntu Servers :: Apache2 - Password Protect Directories With System User

Apr 12, 2011

I want to password protect say a subdirectory, or a subdomain via vhost, with a username/password, but use the systems users and passwords as logins -> I want go avoid any and all .htaccess... as everyone should be doing anyway How would I go about doing this? I know my way around the apache configs fairly well, so I'm not a total newb -> I now I can use .useraccess and .pwaccess but that's flat file driven, not based off of the systems users/passwords.

View 1 Replies View Related

Ubuntu :: Moving/copying Files And Directories To Base Directory Of User?

Mar 12, 2011

How do I copy and/or move files to the base folder of a user? I don't know what is is called, so I do not know what to put in the my file "?" command? I know you would normally put mv filename /directoryname, but what is the base username called?

View 1 Replies View Related

Ubuntu :: Creating A New User Account In 9.10 ?

Feb 3, 2010

I recently created a new user account in ubuntu linux, and created a file called xsession so that I can boot directly into xmbc when I log into that account. Is there anyway to delete the home folder for that account. I can view the file but when I try to delete it is says I do not have apporite permisions to delete the file.

I removed the account and deleted the group but it still shows up when I type in the address /home/xmbc

Is there anyway I can delete this file. It also will not let me create any new user accounts is there any way I can fix these prolbems without totaly reinstalling the system.

View 2 Replies View Related







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