Ubuntu :: Make User Cannot Go Out Of Folder?
May 12, 2010I have users logging via ssh, how to make the user to cannot go out of his account folder?Reason:user should not look into other user folders?
View 2 RepliesI have users logging via ssh, how to make the user to cannot go out of his account folder?Reason:user should not look into other user folders?
View 2 RepliesCode:
cat /etc/group | grep www-data | grep chad
chad:x:1000:www-data
the user www-data should have read access to my folder but i am still getting a 403 forbidden error i have done this before without issue anyone see what is wrong? i have a folder i use for file transfers over IM it is more reliable than the messengers file transfer abilities
i want make a bash panel and i want he will copy files from orginal folder to $user folder i mean when for explame i type i want install some server he say cp: cannot stat 'root/Desktop/2/files/beckup/sa-mp-steam': No such file or directory.
View 6 Replies View RelatedI am attempting to make a shared folder for people that VPN into the network. This folder needs to be accessible to windows and mac machines. So far I have the VPN through ppptd working. I just don't know how to make a folder. I feel like this should be fairly easy. I am using Lucid Lynx server edition.
View 1 Replies View Relatedid like to lock a user into his websites folder not his home folder. and i dont want him to be able to veiw anything outside that folder, only be able to play with whats inside that folder. is this possible?
View 4 Replies View RelatedI wanted to create an user but don't allow it to see the other user's home folder so I made chmod 0750 /home/folder and it worked fine so I went ahead and decided to completely forbid access to the root folder and I had the "great" idea to make chmod 0750 /, and now I'm having problems with wine and other applications, in example I used to have a folder in this address 209.239.114.51/mmgr but now it's giving me errors and if I try to run some applications I got error "There was an error creating the child process for this terminal"
View 9 Replies View RelatedI have 2 users and I would like to copy all the files and folders in one home dir to another.... sounds simple, til i got started. Ive tried
Code:
sudo cp -nRv /home/user1/* /home/user2
but that didnt copy the .* folders. Im after the firefox and thunderbird folders mainly, but all of them is OK too.
im talking about the .adobe, .amsn ..........
How can I copy the .* folders from one user home folder to another and then give the correct permissions to the new user.
My Linux username is "virchanza" and my group is "virchanza".How do I make a publicly-accessible folder within my private home folder?
View 3 Replies View RelatedI been using linux for a while, but I havent had the time to really learn it. Something Id like to get more familiar with is bash so here is a simple example of something I would like to do:
I have a directory full of files. For each file in the directory create a new subdirectory with each files name.
I tried this:
#im already in this directory
aaa=./*
for a in $aaa
do mkdir $a
done
One of the problems is that there are spaces () and - in the filenames so I get many subfolders with names like "-" which i don't want.
I tried stuff like:
aaa=./*
for a in $aaa
do mkdir "'"$a"'"
done
This of course also did not work.
Additional I tried just creating a folder with the name of one of the files and I got this:
mkdir: cannot create directory `(audio) - R56339.EXE': File exists
Well yeah a file exsists with that name, but I want to create a folder- why is there a conflict?
Just to be clear here are the contents of this folder:
~/Desktop/LAB/Media/Drivers - (Image Deployment)/Optiplex_GX260/XP> ls
(audio) - R56339.EXE (NIC-Onboard-Intel) - R54402.EXE
(Modem-datafax-V92) - R54403.EXE OEM_Applications
[Code].....
I have a question that i want to make a normal user to execute the commands which the root user is able to execute, say if i have a user named siru and when i logged in using siru i cannot run commands like tracert,nmap@loccalhost and all but i can run when i have logged into root account so my question is how to make siru to run the command tracert,nmap@localhost.I have even edited the .bash_profile of siru's home directory from
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
[code]...
Recently I setup a system for a non-technical user. He is only using Firefox, Pidgin and OpenOffice for about 2 hours a day. I have created a folder "/home/jim/myFiles" where he can save his document files. But Jim has accidentally deleted his myFiles folder on 2 occasions. He had intended to delete a file in that folder. Is there a way to lock the folder so that the user and create/read/write documents in that folder but not delete the folder itself?
View 14 Replies View RelatedHow would you make NIS user information override local user information on client systems? This is what I think is right? Add nis on the passwd registration file on the second line Is this correct?
View 1 Replies View RelatedI've looked around and haven't been able to really understand how to do this yet.How can I set up a SSH user to access a single folder (and it's subfolders) on my system.I want to give my brother access to a folder under /media/Data/FilesBut I don't want him to access any other part of my system.I've set up a user (using useradd and gave him a password but no home directory).I want to have him use SSH to log in to my machine, start in the /media/Data/Files directory, and not be able to get out of that directory - but add/change/delete/etc any of the files.
View 8 Replies View RelatedI've made some of my own icons in Gimp and saved them as .pngs. The problem is, when I use them they always appear smaller than the system default icons. Is there no way to make them as the same size as the system icons? I read somewhere that GNOME (which is what I use) uses .png .svg and .xpm. I am only able to save as .png with GIMP, is there a way to get .svg and .xpm extension capabilities with GIMP?
These are the icons (only two):
1. HJ-Split Folder
2. Blood Frontier Folder
Is there maybe a specific way to make folder icons that I am not following? Using Ubuntu 9.10, Desktop edition.
I need to make a few folders, but I need the fold name to reflect the time which they were created. For example: if I create a folder at on 2010.06.03 at 13:01:34 then I would need a file name something similar to the following 20100603_130134. In addition, could the same method be used for .tar files? I would like a bash script which I can run to perform the following; however, I am not familiar with scripting in Linux yet.
View 2 Replies View RelatedI used DVD::RIP to make an AVI out of a VIDEO_TS folder, however it compressed it from 4gb to 1gb and the quality is uh.. kind of bad. How can I make an AVI out of a VIDEO_TS "video folder" without losing much quality? Size of the file doesn't matter.
View 1 Replies View RelatedI have a WebDAV server at home with at folder that I want to mount on my Ubuntu computer at work over the Internet. Everything works fine if I just use dav://user@server:port in Nautilus so I tried adding it to fstab (using davfs2) and managed to get it to mount fine.
The problem is that when mounted using fstab Nautilus thinks that it is a lokal folder and downloads images and movies to create thumbnails/previews, something that it doesn't do when just using dav://. This uses a lot of bandwith everytime I'm trying to access a folder with any media. I'm wondering if there is any way to exclude my entire /media/nas folder from showing thumbnails?
Im a Total begginer when it comes to Ubuntu , and i was wondering if i can make a hidden folder or a password locked folder / How To If So
View 3 Replies View RelatedI messed up, and was forced to reinstall the system. my user data ws stored on another partition /home/Andre I installed as a new user "test" How do I make a new user "Andre" such that it uses /home/Andre ?
View 9 Replies View RelatedI recently added another user to my system. My principal user has ID=1000 the new user has ID=1001, they both belong to the group id 1000.
I have an NTFS partition that I am now able to mount for both the users at boot with this line in the fstab:
Code:
UUID=F472BDC372BD8ABE /media/OS ntfs-3g quiet,defaults,uid=1000,rw,utf8 0 0
The point is that if I don't put the option
Code:
uid=1000
I cannot move files to trash but only delete them if I put it I can move files to trash but only if I am logged in as the user with ID=1000 I have tried to change the option and use the groups logic instead of the users (groups are there for this purpose aren't them?) and change the option into
Code:
uid=1000
since both the users belong to group 1000
but the result is that in this way none of them can trash anything (only delete permanently) I have also tried to create a .Trash-1001 folder did not work either
Is there a way to be able to use a Trash folder (or different trash folders I don't mind) and be able to trash files for different users in NTFS?
how the fstab line would look like?
i gave the permission (chmod 647) to etc folder without thinking much. and now i cant log as root and cant do anything.
View 6 Replies View RelatedI figured I'd try out the Ubuntu Minimal install; I liked the concept of minimal distros like Arch-Linux (with a what-you-need-is-what-you-get type of system), but I really liked the community and general support of Ubuntu. Anyway, everything went fine after I got GRUB working properly, up to the point when I found that there were no subdirectories in my user's folder (Templates, Documents, Videos, etc).
I just decided to create the folders I needed. However, there were two issues I came across when doing this: The items in the 'Templates' folder don't show up in the context menu like they should More importantly, the icons for each folder would have to be manually changed for every new icon theme (if I wanted to use a new icon theme, I would have to navigate to the theme's folder every time for each icon I wanted changed) I'm not too concerned with the templates at the moment, but I was wondering how I would make these icons dependent on the current icon theme. Is there some package I missed installing?
By the way, if it makes a difference, I'm trying to set up the default Humanity icon set (well, not default for me, since I'm using Ubuntu Minimal). Also, sorry if this question has been posted before (or if I find the solution immediately after posting, which almost always happens to me), I didn't know exactly what to search for...
i cant seem to find how to do it. For the Keyboard shortcuts, i want to make a shortcut that opens my download folder. I can add custom commands, but in the command line what do i put to open the folder?
View 3 Replies View RelatedLimit every user to his own home folder only.I have a web server running 10.04 LTS and as a newbie in the world of server administration, I'm in a bind.Right now, I have three users. Root, which obviously has access to everything, and two other users that each own a website.For these two users, their website is located in their respective home folder in an extra folder they each have Read, Write & Execute permissions on. This is the only folder they can write to. They cannot delete it, or change anything outside the folder.
So far so good, except that by default, they can also read any file in the system, meaning they can navigate to my other websites' folders and read, for instance, the database passwords from WordPress config files.This is obviously problematic.The users access their files and folders through SSH with FileZilla.
How can I prevent these users from reading sensitive data, i.e. how can I restrict their access to only their home folder?The users must continue to login through SSH with FileZilla (i.e. no FTP solutions)Apache must still be able to access the user's folders (i.e. cannot chmod to 750)Folder containing the command line tools (/bin/bash I think) will probably have to be symlinked in the user's home folder?
I'm having some trouble with the user's home folders in Samba, ubuntu clients.I have a Samba server (Ubuntu Server 9.10)nd a bunch of windows clients and ubuntu clients too.On windows clients, each usercan see his home folder without problems, and the other shared folders too of course.The problem appears in ubuntu (i'm using gnome desktop with nautilus and the plugin for I enter Places->Network->Windowsetwork->DOMAIN->SERVER I only see the public shared folders, but no the samba user's home folder.I tryied connecting to samba through Places->Connect to Server and entering the username (for previous auth just in case) but nothing happens...
If, in nautilus I write smb://server/username, once it asked me for my user and password (but I told the popup to keep the password forever so now it doesnt ask me anymore :S), but it keeps not showing the folder under SERVER, the only way to access it is through smb://server/username directly. Even username@server does not work.Mi auth type in the Samba server is "user", and the auth config at my ubuntu client is also userJust in case.. when I type smbclient -L //SERVER -U username, it shows me the home folder ok.
Just did a new netbook install of Lucid. Went through the setup, putting in my usual username etc. But I thought as it's a portable, I'd better select the encrypted home folder option. All went OK.
I have a home network with a NAS and I needed to change the UID to 1004 to match the rest of the network.
That's when it all when wrong. If I do that, I end up with no permissions on the user folder. A bit of a paradox, you can't change UID if logged in, but unless you're logged in, can't access the files.
My attempts to get around it by changing UID's back chowning, changing back etc. have screwed things up completely.
I have managed to open the encrypted folder and chown, but after a reboot it's all back to the original UIDs, but now I can't get in at all.
when installing ubuntu, the installer asks for username/login/password of the first user which will be allowed to sudo and administer the system... let's call that user "ubuntu"
what if I want to:
1) Automate those answers (which preseed variables should I set if any?)
2) Change the default home directory only for that user... let say I want it to be /ubuntu instead of /home/ubuntu (because I want /home/ to be empty after setup).
I know I could tweak /etc/passwd after setup (before first reboot) but I would like to know if there is a "clean way" to do that.
i have been running windows from ME through to Windows 7 over the years. and i must admit that because of all the flaws with the earlier versions and those wonderful little viruses that seem to show up even though your teenagers swear they didn't do anything ,have made me somewhat skilled at formatting and reinstalling the OS to the point where i have done it for several other ppl to help them out. I rather enjoy doing it actually.
and i have been a big fan of lets just call it "open source" windows software. now this ubuntu thing seems to have taken some of the fun away..
i ran the cd version of 10.10 and really liked what i saw so i installed it alongside my windows 7. naturally as luck would have it something went astray and i can no longer boot to win7. not a big deal. i was going to format and reinstall anyways. ha ha.
i have been reading through the forum learning what i can but now my question
i still have a machine running windows on my home network.
what i would like to do is make a shortcut to a folder on it from my ubuntu desktop. i do have full access to the machine and the folder , i would just like a shortcut .
I'm sorry if this question has already been answered, here or in Google, but 5' of search didn't give me any satisfactory answer. I haver 2 users, usr1 and usr2. I have access for both users. I want to link a folder from usr1 into the home directory of usr2. That is, if usr1 has the following folder
/home/usr1/Music
I want usr2 to link to this folder in this manner
/home/usr2/Music/usr1
I want usr2 to have read and execute permissions over all files and folders under that link, but probably I don't want him to have write permissions.
I want to host a public FTP on my server, but i cannot get it so that people can read and write but not delete ANYTHING from it.
I have tried:
chown root /home/ftpdir
chmod 1777 /home/ftpdir
but people can still delete the files in it, i have no idea what to do next. that's the only thing i can find on Google about how to do it.
the users are logging in with the same Account, i cannot make a new account for each one.