Ubuntu :: Verifying An User's Permissions?

Nov 20, 2010

I just started dual booting Ubuntu 10.10 on my mini 10v with OS X a couple days ago, so I'm still pretty new to Linux.

But anyhow, I was attempting to change my User ID number so I could access the files in my User folder on my OS X partition. So, I tried entering the following commands:

sudo usermod -u 501 yourusername
sudo chown -R 501 /home/yourusername

Of course, smart me should've realized I should've been logged out and on a different administrative account to do this. But I didn't, and I believe the second command didn't work. So, whatever, I thought I'd try logging out and logging in as root.

So, I logged out, tried logging in as root, and of course, no dice because I didn't know the password. So then I tried logging onto my account and upon logging in, I got two errors. One was about ".ICEauthority" and I didn't keep track of what the other one was.

Great. So I did a quick google for the error, then tried entering these codes:

$ sudo chown user:user home/user/.ICEauthority
$ sudo chmod 664 /home/user/.ICEautority
$ exit

[Code].....

And again, I think the last one didn't work. So, I looked up how to login as root, changed the password and logged in as root successfully. Then, whilst in root, I entered:

/usr/sbin/usermod -u 12345 joeuser
/usr/bin/find / -user 701 -print | xargs -t chown joeuser
/usr/bin/find / -user 701 -exec chown joeuser {} ;

Upon entering those, I logged out and logged back into my account and everything was a complete success. No error messages anywheres AND I could access the files in my Mac user folder.

So, here's my question. How can I make sure I have all the right permissions I need? Or do I already have the all of the permissions I had before changing my user id?

Did those last three lines of code I entered "override" all of the codes I had entered previously? I just want to make sure verify I have all the correct permissions necessary so I don't run into any issues later on.

View 5 Replies


ADVERTISEMENT

Ubuntu :: One User Cannot Login Via GDM - "reset" All (X, GDM Related) Permissions/settings Of One User?

Dec 11, 2010

Is it possible "reset" all (X, GDM related) permissions/settings of one user? What would cause one specific user not to be able to log into anything via gdm/the login screen? After providing the proper password, the screen goes black and then jumps back to the login screen. No session alternative works, not even xterm or gnome failsafe. I can however log in via the console (Ctrl+Alt+F6, recovery etc). With another user I can log in via GDM just fine, and deleting and re-adding the "broken" user doesn't make any difference.

Some (maybe) relevent logs:

part of syslog:

Quote:

Dec 12 01:20:58 <specific user> pulseaudio[1358]: core-util.c: Home directory /etc/timidity not ours.
Dec 12 01:20:58 <specific user> pulseaudio[1358]: lock-autospawn.c: Cannot access autospawn lock.

[code]....

View 2 Replies View Related

Ubuntu :: What Does Set User ID Do - Nautilus Permissions

Oct 22, 2010

What does Set user ID do? Reason I ask is if I select "Set group ID" it makes it so any files/folders created within that directory get the group accordingly. But if I select "Set user ID", it doesn't do anything that I notice. I thought maybe it would change it so any files/folders created get that user set as the owner. So if that's not it - what's its purpose?

View 2 Replies View Related

Ubuntu :: Add Root Permissions To User?

Jun 5, 2010

How do I add root permissions to my user account?

I want full permissions for all computers in my house, without having to get up and go to the other room and change permissions for the file, then go back to the other room again.

I just created a partition, as THIS user, THIS machine, rebooted, and cannot create a folder on the partition I just created. UGH. No more of this stuff...

View 4 Replies View Related

Ubuntu :: How To Check That User Have Full Permissions

Mar 1, 2010

How can check that I have full permissions on anything should I set my self as root? There are a lot of files it said your not the owner so you can't change but if I'm not the owner then who is?

View 9 Replies View Related

Ubuntu Security :: Setting Permissions For Www User Only?

Mar 19, 2010

I wanna make a small web server for local use , I've installed apache, every thing works fine I'm the root

I wanna protect the folder that contain the htdocs files (www), i don't want any users that not in root group to access (not even read)

I changed the permission of the htdocs folder as next

Owner: www (apache user)
per: creat , delete
group: root
per: creat , delete
other: none

it only works on the main folder that i changed its permissions ! not all sub folders and files ! were my steps right ? and are their anyway to change all folders and files at once ?

View 4 Replies View Related

Ubuntu Security :: Removing Permissions From New User?

Apr 8, 2010

I just added a new user to my ubuntu:

sudo adduser james

When james logs in he access his folder BUT he can also access other user's folders. How can I prevent his access to others? I wish to restrict his account to his folder only (he can read/write).

View 5 Replies View Related

Ubuntu Servers :: User Permissions - Login Through SSH

Feb 27, 2011

I am running Ubuntu server with an SSH server installed. How can I create an ubuntu user and give that user permissions to read and write only 1 specific folder so someone can log in through SSH using the new username and only put files in the folder I specify?

View 2 Replies View Related

Ubuntu :: User Group Permissions Mess Up

Apr 14, 2011

My main account 'dave' runs as admin etc This was the output of 'groups dave': dave adm dialout cdrom plugdev lpadmin sambashare admin I was trying to add dave to the user group 'media-www' and i ran this command: 'usermod -G media-www dave' Then after another 'groups dave':
dave : dave media-www It seems to have removed all the other groups! How do I restore this?

View 4 Replies View Related

Ubuntu :: User Account Settings And Permissions?

May 8, 2011

I'd like to set up my PC so that it has one "master account" for system settings, desktop appearance, etc. And then I'd like other user accounts that read these settings so if I change the settings on the master account, those accounts follow the new settings but cannot change them. But at the same time, these accounts cannot be allowed to read to master account's personal files (documents, music, etc.) Each account would be restricted to its own home directory, as expected.

Is there any way to set something like this up or am I dreaming of the impossible?

View 1 Replies View Related

General :: Add New User With Same Permissions?

Oct 26, 2010

I have just installed Ubuntu on a machine at work and wondered how i can add a new user with the same permissions as the "main user"? I added a user via the "users&groups" gui but sorting permissions looks tricky.

View 1 Replies View Related

General :: Understanding Ubuntu User / Group Permissions

May 20, 2010

I'm beginning to deal with more than one user on my system (it's a VPS serving some sites) and I need to make sure I understand how group permissions work. I have an account named "admin" .. it's basically the primary account that is used for serving most of the sites that I control myself. Now, I added a second account named "Ville" as one of my users wants to be able to administer that site. So, I can do this the easy way and just chown their domains folder under the ville user, they have permission to do whatever they need be and so forth. However, let's say I want to also give the admin user access to the files (modifying and all) .. how can I put both users into the same group and give them both permission?

I've tried doing:
sudo usermod -a -G admin ville
To add the ville into the admin group, but ville still cannot edit files by admin. Permissions for the primary directory for the ville user are read/write for both owner and group, and the current group for the files is admin:admin ..
But ville still can't write into the directory. So, what should I be doing here to get this right and secure at the same time?

View 1 Replies View Related

Ubuntu :: User Doesnt Have Write Permissions To Floppy?

Jan 7, 2010

so i have a limited user (my dad) on Jaunty who has no write access to his floppy disks. Nautilus gives a permission denied error, and i discovered that root owns the floppy drive, thus allowing his read-only. (that write tab on the floppy in on btw). However, when i login as a admin, nautilus says that user has write access. ??? I check the user's user privliges and everything exept "administer the system" is checked. I can copy files on it by logging in as root.

View 4 Replies View Related

Ubuntu :: Apply User Permissions To Not Just Folders But Also All Files

Jan 19, 2010

I want to add my daughter as a user and give her full permissions to all the same folders and files that I use. I have given her permission to folders and their sub folders however she doesn't have rwx on the individual files within the folders. What is the command line to set this up?

Also with the command;

Code:
chown -R root:root files

what is the -R for and when do I need or not need it?

View 4 Replies View Related

Ubuntu :: Changing Icon And Setting User Permissions?

Oct 29, 2010

I tried to place a mono icon in usr/icons/etc but I didn't have the permission to do so. I tried to change my user profile to Admin, thinking I could go back to custom, but that hasn't and it isn't allowing me to go back to my previous setting.

Within minutes of being an Admin user I noticed I couldn't even unmount something. I really need to figure out how to change my profile back to default.

After that has been dealt with, I would like some guidance on how to gain root access to put my icon where it needs to be.

View 1 Replies View Related

Ubuntu :: No Password - Read Only User (Limited Permissions)

Nov 9, 2010

I'd like to add essentially an anonymous user, which does not require a password. Second I think it's probably a good idea to only give this user very limited permissions, is there a way I can restrict the commands that they can run to a list (i.e. they should be able to run scp, ls, cd, maybe a few more, but not much)?

View 5 Replies View Related

Ubuntu Security :: User (in Jail) With Very Limited Permissions

Nov 21, 2010

I want to have an account (beta user), on which:I can use the Internet and other programs without administrative rights without the right to install programs with a kind of sandbox for everything that is connected to the Internet, which means: everything that is associated with the web browser's processes and files that I save to hard disk I want to be separated from the rest of the system, so that whatever can catch up on this account will be locked in it, for example any (if at all) possible malicious scripts from Internet or whatever may be dangerous now or invented in the future. Sometimes, for example, I save the web page to disk with all it content.

And in case someone cracked into this account I want make it in that way that he could not do any tricks to read or change passwords, or make any other changes to the system. The best would be if a password for that user might serve only to log in without having any other powers, and I would give that user an automatic login. For now I created a beta user without administrative rights. I understand that the limiting rights of the user are associated with limiting rights to their home directory. There are also groups, and a user may be included or excluded. I excluded that user from admin group but I don't know what else I can limit and how. When I give chmod 0644 for /home of this user he cannot run Firefox. When I give him 0740 he can run applications, so I assume the x attribute must be preserved.

This is a user without sudo rights, so when I type sudo apt-get update a message shows up correctly that this user doesn't belong to the sudoers group. But still it's not what I wanted. When the user runs Gufw and wants to change the settings to disable the firewall, a message shows up asking to type in a password of alpha user = primary user, which is that belonging to the sudoers group, the first / main user that I created during system installation. I wish that there was only the message that the beta user has no power to change anything, which means even completely remove the possibility of asking for sudo.

In addition, I wish that this beta couldn't be able to change the permissions to its home directory, or go to see what is above. Because so far beta can change the file permissions for its /home, even without a sudo password. How can I do it? Do I need to create a kind of chroot jail for this user? I would like any changes to that user account could be made only after the user log off from beta account, and log in on alfa account and that beta could run only programs that ware installed by alpha. And that beta could read and write, but alfa could also read and write or remove, alter files on beta account. Basically, alfa account should be superior to beta account. Can do that?

View 9 Replies View Related

Ubuntu Networking :: Samba Server And User Permissions

Dec 30, 2010

I have a Samba server running on a box where I login to admin as user:
FRED
The Samba users are
SUE
JOE - Read only for specified paths (media playback access only user)
SUE can read/write to any directory under the share: Media

So all that is working fine. As long as I do file operations remotely as SUE everything works remotely. How can I make it to where everything SUE does over Samba FRED automatically has permissions to edit when logged in locally (or SSH)? Also, remember, Joe needs to be able to read where specified.

View 3 Replies View Related

Ubuntu :: Share / To 1 User With Full Control Permissions?

Jan 4, 2011

I have a Ubuntu 10.10 server and I would like to have full access to / from my Windows 7 box so I can modify config files and such.

I have already installed Samba and created a local user on the server for myself.

I am at the point where I need to create the share to / and give my user read/write to it.

Additionally if possible I would like for it to be a hidden share for additional security.

View 2 Replies View Related

Ubuntu :: Chmod File Permissions Between User And Root ?

Jan 26, 2011

I want to have two kind of users in a work machine having ubuntu 10.04,

1) He is the admin, have sudo privilages and install, do all types of work, his username is abhilash

2) A user who is normally a IT administrator, who can just install or remove softwares, but cannot access files of abhilash.

I'm trying to do this and my head is going blank, The problem where i'm stuck is, if IT admin can install softwares, then he can become sudo as sudo su, then he can view my files

So here is a small test i did, first with abhilash.

Code:

Now others and group don't have any permissions! But when IT Administrator becomes root, he can see this file

Code:

View 5 Replies View Related

Fedora :: Add Permissions To Run Under A Standard User?

Mar 11, 2010

Been running 64 bit fedora for a few weeks now and all is dandy. I have been having problems using Wine & Winetricks to install extra components. Wine seems to crash when ever i try to run something as a standard user. Run as root and the problem doesnt happen. Do i need to add some permissions to run under a standard user? With Winetricks, when i go to install any componet, after extracting and installing all files i get:

'Executing early_wine regedit c:winetrickstmpoverride-dll.reg
regedit: File not found "c:winetrickstmpoverride-dll.reg" (2)
Note: command 'early_wine regedit c:winetrickstmpoverride-dll.reg' returned status 1. Aborting.'

Now i have searched everywhere for these .reg files that are not found, havent found anywhere that can tell me where to retrieve these files.

View 2 Replies View Related

Networking :: What Are SFTP'd User Permissions?

Apr 6, 2010

if lets say 'someuser' sftp's into the box what is he actually able to do?Looking at my tests he can browse any directory to which he has read permissions but is only able to delete files in /home/someuser, even if they are owned by root. On the other hand in any folder above /home/someuser he would NOT be unable to delete a file even if its chmoded 777. Can anyone please confirm these findings.

View 4 Replies View Related

General :: Ssh Permissions For Single User?

Jun 10, 2011

I have a user that can ssh to every computer on our network expect for one. I verified that it has to be the account by having the user ssh from a different computer. the results were the same.

View 2 Replies View Related

General :: User And Group Permissions

Jul 10, 2010

I am doing rhce course but i am very confused to answer these user and group permissions.the questions are like this...the owner of the /data must be user tom.primary group of /data must be the group sysadmins.the members of the group test must be able to write and create files in the /data.the members of the group web have no access to these directory.the user jack not belong to any of these gropus must have to edit files created in /data.the user tim can only list the contents.

the questions are always like these..i am okay with sgid and sticky bit.but i dnt know where to set default acl and other permissions.

View 3 Replies View Related

Security :: Add Root Permissions To User ?

Jun 5, 2010

How do I add root permissions to my user account?

I want full permissions for all computers in my house, without having to get up and go to the other room and change permissions for the file, folder, drive, directory, computer, etc., then go back to the other room again.

I just created a partition, as THIS user, THIS machine, rebooted, and cannot create a folder on the partition I just created. UGH. No more of this stuff... I guess at the very least, I'll still have to log onto each machine for this?

View 12 Replies View Related

Server :: User Folder Permissions For FTP?

May 4, 2010

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.

View 1 Replies View Related

Ubuntu :: No User Permissions For /home After Installing & Removing Desktop

Aug 22, 2010

i'm having trouble with my fresh ubuntu installation (netbook edition). what i did was install xubuntu-desktop on top of that (wanted to check it out)..........didn't really work for me, so i removed it, hoping this would also remove the xubuntu desktop logon screen, which i didn't like. since this wasn't the case, i went to synaptics and removed all and everything with xubuntu in the title. NOTE: in the same session i turned off password requests for login - it could also matter, but i'm not sure, so i thought i'd mention it. the end result: three warning messages at logon

- Could not update ICEauthority file /home/dsikl/.ICEauthority

- There is a problem with the configuration server. (/usr/lib/bgconf2-4/gconf-sanity-check-2 exited with status 256)

- Nautilus could not create the following required folders: /home/dsikl/Desktop, /home/dsikl/.nautilus. Before running Nautilus, please create these folders, or set permissions such that Nautilus can create them.

i don't have access to my programs, administrator tools, /home folder, nothing.........the only thing that appears is the right part of the top bar (network, clock etc.), but also completely different.......it doesn't have my WLAN data anymore (can't access it), and all i have managed to get started was (accidentally) terminal with Ctrl-Alt-T, and from there I can use sudo, or even start nautilus, but can't access my own user, no matter what.........in the end i somehow managed to get to the point where it requested my passphrase, which i wanted to print out a day before it happened, but didn't and the screenshot is unfortunately within my /home folder. i tried reinstalling xubuntu-desktop, even ubuntu-desktop, i repaired broken packages from the recovery mode, tried everything i could to get the bugger going again, no success yet.

i would be happy to do a clean install, but there's one spreadsheet in the documents folder which i desperately need and i really need to get a hold of it before formating. could some sort of a rescue livecd help? i just need that one file. the easiest would be if i could somehow repair whatever packages may be broken, or manually (with apt-get or similar) reinstall the additional xubuntu packages i manually removed via synaptics, but i wouldn't have a clue what those were

View 3 Replies View Related

Fedora :: Mounting 2nd Drive With Permissions For Any User?

Feb 25, 2010

I looked through the guides and didn't find what I was looking for. Here is what I have so far:

[Code]...

That's the drive I am wanting to mount with full permissions for anyone. Right now the folder only has root permissions. Is there a specific group ID I assign this in fstab so it's automatically mounted with full permissions for anyone who logs in?

View 14 Replies View Related

OpenSUSE Network :: NFS V3 Inconsistent User Permissions?

Feb 2, 2010

Code:
#suse's /etc/fstab
/dev/sdb1 /windows/FAT vfat users,uid=1000,gid=100,rw,utf8=true

[code]....

View 11 Replies View Related

General :: Check Whether A User Has Login Permissions?

Jul 12, 2010

I want to make sure that the user www-data cannot be used to login on my system (Ubuntu Lucid). How can I find out? - is there a command I can run against this user? (traditionally run by Apache daemon)

View 3 Replies View Related







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