Ubuntu Security :: Write Permission To Mounted File System?

Feb 1, 2010

I just found that I could perform write operation using a normal user account to a file system I mounted with the commands as followed:

sudo mount -t ntfs /dev/sda1 /mnt/disk/

This is the corresponding entry in the output of "mount" command:
/dev/sda1 on /mnt/disk type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)

As far as I remember, when using a normal user account, I had to use "sudo" to perform any write operations (mkdir, rm, etc) to a device mounted using "sudo". But now it seems to be changed.

Do I remember wrong, or did Karmic have any updates change this setting? (I never manually changed user settings, except that I added a root user, but I never used it.)

OS: Karmic(up2dated)
Kernel: Linux stephen-laptop 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC 2009 i686 GNU/Linux

View 4 Replies


ADVERTISEMENT

General :: Recursive Write Permission On Cifs Mounted File System

May 14, 2010

I have mounted a iomega file system on a cetos os machine using

mount.cifs //filserver-ip/directory /home/my-home/mounted-file -o
user=username

(** mounted as root) The mounting works fine.

The problem arises when I try to create a sub-directory inside the mounted directory. All the newly created sub directories become write protected.

I am accessing this file system from R software and it needs to write/create directories in side this mounted directory.

how can newly created sub-directories will become automatically writable, so that R can create new sub-directories and write data inside those directories.

View 2 Replies View Related

Ubuntu Security :: Wordpress Permission To Write To Files?

Nov 9, 2010

I am having difficulties assigning permission for wordpress to write files. I am having problems with the permalink within wordpress and I think it might be because of the level of permission wordpress has. Currently on my system I need to set permission to 777 in order for wordpress to write to the .htaccess file.

I am running my website on a Ubuntu machine. Version 10.10 Apache2 2.2.4

However, when I leave the permission level set to 777 I still cannot get the permalink to point to the corrent page......See my discussion on this here. [URL]

I think what I need to do is change wordpress to use a user permission or a group permission and not "everyone". I would rather have wordpress setup to login as a specific user before it can write over a file.

View 5 Replies View Related

General :: Change Default File Permission For Mounted Windows Network Share?

Jul 26, 2010

I'm on OS X and mount a network share from my Windows XP machine. Files by default have the rwx (700) permissions. What OS X option I need to change, that the files will have rw (600) permission?

Maybe this question also applies for Linux mounting a Windows network share.

View 1 Replies View Related

General :: File Permission. Write And Execute Only?

Jan 11, 2011

Is there any use if a file has only write and execute permission and not read permission?

View 2 Replies View Related

General :: Windows Access The File From Ubuntu Got Read Only Even Though Have A Full Permission To Read, Write And Execute The File?

Feb 4, 2010

What are the possible problem when Windows access the file from Ubuntu got Read Only even though have a full permission to read, write and execute the file? Ubuntu to Ubuntu accessing the file there is no problem only Windows got a problem.

View 1 Replies View Related

Ubuntu :: Mount Dir Using Smbfs To Windows Share Can't Write To File Permission Denied?

Jun 19, 2010

Mount a Windows share where my user account has admin privileges. All permissions granted to the share on the windows pc side.Mount statement is as follows:sudo mount -t smbfs -o username=johndoe //winname/directoryname /mnt/tmp/Share mounts ok but does not let me create or write to an existing file. When I select Properties on the directory it says that permissions are unknown on the share looking at it from Ubuntu.

View 4 Replies View Related

General :: Removing Write Permission Does Not Prevent Root From Writing To File

Feb 3, 2010

I just noticed on my Ubuntu machine (ext3 filesystem) that removing write permissions from a file does not keep root from writing to it. Is this a general rule of UNIX file permissions? Or specific to Ubuntu? Or a misconfiguration on my machine? Writing to the file fails (as expected) if I do this from my normal user account.Is this normal behavior?Is there a way to prevent root from accidentally writing to a file (Preferably using normal filesystem mechanisms, not AppArmor, etc.)

I understand that root has total control over the system and can, eg, change the permissions on any file.My question is whether currently set permissions are enforced on code running as root. The idea is the root user preventing her/himself from accidentally writing to a file. also understand that one should not be logged in as root for normal operations.

View 4 Replies View Related

General :: Cannot Change File Permissions On A Mounted File System

Apr 6, 2010

I have an ntfs partition that I wish to access as a normal user(non-root). For this I did the following. As root I created a folder /windows and did a chmod 777 -R on /windows. Then I added the following line to /etc/fstab

Code:

/dev/sda3 /windows ntfs-3g defaults,nosuid,nodev,umask=000 1 0

Now, the partition is mounted alright but the problem is that when any other user (non-root) creates a files in /windows (say by executing touch newfile) the newly created file has the owner and group set as root. The non-root user can create the file and he can also delete the file, however, he cannot change the permissions of the file and also the owner:group is always set as root:root. How do I get across this problem, i.e. how do I mount a partition, so that a non-root user can also change the permissions and ownerships of the files he creates.

View 2 Replies View Related

Security :: Pass A Key File To The Crypttab From An NFS Mounted Location?

Apr 12, 2011

I am implementing hard drive encryption. I wish to pass a key file to the crypttab from an NFS mounted location. But I could see that the disk encryption process starts very early during the booting process, before fstab is run. I could not find which script, in rc5.d, starts this service. And I am confused on how nfs mount are performed from fstab, as the network service starts at a very later stage than after fstab is called to mount the local partitions/disks. In my case, I have to wait until the nfs is mounted and then call the /dev/mapper mount (in fastab) to mount the encrypted partition.

View 2 Replies View Related

Security :: File Permission - Read An Execute Only File

Dec 16, 2009

Suppose I have a binary program with only execute permission enabled for the current user. How (in general) would I be able to obtain a core dump of the file? I think I have read it somewhere but I want to know if there are more ways of doing it.

View 1 Replies View Related

Ubuntu :: How To Make File System Auto-mounted

May 15, 2011

Under my 'Places' in my file manager, I have a '21 GB file system' How can I

1. Have that 21 GB auto mounted every time I login? I now need to right click and select 'mount'?

2. Give it a name so that it won't call 'a9f28af4-71db-4e49-8c05-f652bf808cc1/' under my directory '/media/'?

View 2 Replies View Related

Ubuntu :: User File System Check When Mounted?

Sep 1, 2011

A non techie friend has helped an even less techie friend by contacting me by email to discuss an ailing laptop. A few emails were exchanged, with more details, and it was not looking good because it seemed that suddenly the CD drive was not responding, nor any USB devices, the wireless icon was gone, but Ubuntu still seemed to work (for now), with wired ethernet also working. I was struggling to think of what could be done, with the favourite routes of Live CD and Live USB apparently gone.

After a few more hours - another email: 'It's now working! After so many reboots it checked disc for errors and repaired itself! Is there some way of doing that when needed anyway?'I see there is 'Disk Utility', and this would presumably fit the bill, but how does it do checks and repair when the damaged file system is being run, and is currently *mounted*? I thought utilities like fsck(?) could only be run on unmounted file systems? Have I misunderstood the disk utility fs check repair function? And anyway, what might be a good answer to my (nontechie) friend's question 'After so many reboots it checked disc for errors and repaired itself! Is there some way of doing that when needed anyway?'

For the record: (quote) It is a toshiba EA60-155 Model number PSA67E-00300C8J. He put in extra ram to install ubuntu. He thinks he may have deleted something! There is a 'trash' file on his USB drive with loads of stuff in it and he doesn't know how or why but because it won't now read the drive on her laptop we cant replace it! (end quote)

View 3 Replies View Related

Ubuntu :: Hiding The Icon Of A Mounted File System Icons From Desktop?

Mar 16, 2011

10.04 LTS: Is there a way to hide an icon of a mounted file system from the GNOME desktop?

View 8 Replies View Related

Ubuntu :: Repairing File System After Partial Fsck On Mounted Partition?

Apr 4, 2011

I'm running an Acer Aspire 1830T-3721 dual-booting Windows 7 with Ubuntu 10.10 (Desktop).

Background: So first I dropped my laptop a couple feet while Windows was running. The laptop immediately shut off and then tried to boot. Booting Windows results in an unfortunate "Windows has encountered a problem communicating with a device connected to your computer. The error can be caused by ... faulty hardware ... Status: Oxc00000e9 Info: An unexpected I/O error has occurred." But Ubuntu booted fine, and could access my NTFS files fine, so I was trying to work on the problem from there. I try a few utilities, looking at the partition table, etc without actually applying any changes.

Then I run a fsck on the drive. It loudly warns me that if I continue on a mounted drive, then I'm going to mess things up. In a moment of stupidity I push on, thinking that surely it would ask me for more configuration, or confirmation, before actually starting. The fsck runs for about 1 second before I Ctrl-C it, running some preliminary stuff and then just starting pass 1.

After this, Ubuntu won't boot anymore. Instead, it hangs just after the init-bottom script runs. If I boot with init=/bin/bash, I can get to a shell, and see that my file system is still there, but not sure what else to do.

I've been running off of a SysRescCD LiveCD, from which I've looked at the drive with testdisk. Testdisk reports that "the hard disk seems too small" while showing me the partition table.

I ran a fsck on the Linux partition; it fixed a bunch of things. There has been no apparent effect on the boot behavior.

I can access all my files, back them up, and reinstall Ubuntu, but I'm hoping there's a better solution, perhaps one that will also help me repair my Windows installation (but I'm looking at one problem at a time here).

View 4 Replies View Related

Fedora Security :: SELinux Denaied For Changing Permission Of File?

Mar 27, 2011

I couldn't able to change file permission of files residing under /media/* Under /media all the NTFS partitions are mounted manually (gnome GUI) using root password. File properties of file under those NTFS partition shows SELinux context is "fusefs_t". I guess this is prevention from changing permission of file. How can I over come this?

View 9 Replies View Related

Slackware :: File System And Mounted Point Information Log During Boot?

Jul 25, 2011

I want to make sure that all my file systems and mounted points are OK during boot time. Which log file in Slackware shows such info?

View 3 Replies View Related

General :: Root File System Is Mounted Read-only On Boot On Gentoo?

Sep 27, 2010

I am using Gentoo Linux and for a while now, the root file system is mounted read-only on booting. For obvious reasons, this is quite annoying as most services do not start up correctly (I do not use a separate file system for /var). After the system is up, I have to log in, remount the root file system read-write, fix /etc/mtab, mount all other file systems in from /etc/fstab and then start up all the missing daemons. I know that there are ways to make a system run properly with a read-only file system, but I would rather restore the old behaviour of a writable root file system.

The strange thing is that after running mount / -o remount,rw, the file system is mounted in writable mode without any errors. I suspected some problem with fsck, but now I have disabled automatic file system checks on the partition (tune2fs -c0 -i0).When I run dmesg, only these lines mention the partition at all, although I am not sure if not something gets lost because /var/log is not writable:

EXT3-fs (sda5): mounted filesystem with writeback data mode</code>
EXT3-fs (sda5): using internal journal
The line in /etc/fstab looks like this:

[code]....

View 2 Replies View Related

Networking :: Programs Cannot Create Temp Files On Nfs-mounted NTFS File System?

Jun 14, 2010

I have an NTFS file system nfs-automounted on our RedHat servers. Users can read and write to the file system no problem, and can create new files, edit them, and delete them to their heart's content. The only issue is that utilities such as "dos2unix" cannot create temporary working files:

$ dos2unix events.0818.dat
dos2unix: converting file events.0818.dat to UNIX format ...
Failed to open output temp file: Operation not permitted
dos2unix: problems converting file events.0818.dat

This isn't limited to "dos2unix"; any other utility that creates a temporary working file gets the same problem. If I copy the file to a local file system like /tmp, it works fine. Here's the kicker: this works fine on Solaris systems. I can take the "dos2unix" utility over to a Solaris system that has that exact same NTFS file system automounted via NFS, and it works. No issues creating temporary working files at all.

View 5 Replies View Related

Ubuntu :: Can't Read Write To File System?

Sep 7, 2010

I have a file system that I can't seem to read and write to. I've tried everything I can think of.

Code:
root@xubuntu:/mnt/t1# ls -la
ls: cannot access .Trash-1000: Input/output error

[code]....

View 2 Replies View Related

Ubuntu :: Give Two Client Users Permission To Access Their File System?

May 1, 2011

The desktop computer of my two children has a total of three users:

1) The superuser (me)
2) The user 1001 (my elder son)
3) The user 1002 (my younger son)

Both users 1001 and 1002 can not access their files system, and also they can not save any attachments from incoming mails.

What I tried so far:
I accessed the file manager as superuser, and went: >Root>Home. Here I right-clicked on the folder User 1001, selected properties, selected the tab 'permissions' and allowed this user to read and write into this folder. I also checked the checkbox �extend this permission to all subfolders and its contents.

The problem is, when I reboot, everything is 'forgotten' and I am at quadrant zero again.

Eventually I should state that part of the folders are from a backup drive, because the hard disk had to be replaced so, once I re-installed the OS on the new hard drive, I copied the folders from the backup drive into the home folder.

One last question:
Is there a good tutorial about permissions?

View 9 Replies View Related

Ubuntu :: Use To Read / Write To Ext4 File System In Win7 X64?

Dec 22, 2010

1. What can I use to read/write to my ext4 file system in Win7 x64? 2. I use Macbuntu. Is there any way to get a translucent top bar 3. My computer seems to be running hot while on Ubuntu. The fan speed seems increased. It goes back to normal on Windows though.

View 2 Replies View Related

Software :: Gnome - Permission For Mounted Fs?

Jan 12, 2010

I have noticed recently a somewhat alarming amount of weird 'isms' about Gnome. In this case I have my fstab settings for a specific HDD to automount a itself with user rw privliges. I am open to believing my fstab is not configured correctly so here is how it is written.

UUID=e541ea71-c214-4ecf-80bb-1a1fccd81786 /media/backup/ ext3 rw,user,noatime,noauto 0 2

it automounts and I can unmount it as user and remount and so on. Using the command line I would have no problem making a directory with
md /media/backup/Pictures However, if I double click on the icon that appears or browse to the location /media/backup/ and right click in that folder I can't create a folder and when I tried to drag and drop into that folder it said I didn't have the appropriate permissions

View 2 Replies View Related

Ubuntu Networking :: Cannot Change Permission On Mounted SMB Volume

Apr 27, 2010

I am trying to mount Samba share with following command

Code:

mount.cifs //192.168.0.3/shmelevsky /mnt/tmp/ -o user=shmelevsky,uid=1000,gid=1000

it works fine, I could create/edit files and folders, bu I could not change permission for them:

Code:

root@darkstar:/mnt# chmod 700 tmp/www/
chmod: changing permissions of `tmp/www/': Permission denied
root@darkstar:/mnt#

View 6 Replies View Related

Ubuntu :: Write To An Mounted ISO Image?

Apr 9, 2010

Is anyone aware of a way (or a program I can use) to write to an existing ISO image?To set the scene I've used APTonCD to create an ISO with all the programs on I want so that the next time I install Linux Mint (or Ubuntu) I can just put in the CD & install a lot of programs in one go with Package Manager. Thats worked fine & I have the ISO ready for CD but I would like a way to change it a bit so that I can add some of my own custom setup scripts (stuff to set up user accounts & so on) then every thing I need is all on one CD / DVD

View 2 Replies View Related

Ubuntu :: Can't Write To Directories Inside My Main File System / Change It?

Apr 23, 2010

I can't write to directories inside my main file system. This is annoying, how to change?

View 3 Replies View Related

General :: Node Mounted From Appserver - Permission In NFS

Mar 2, 2010

I have a Node mounted from my Appserver (Solaris) to DBserver (Solaris), the reason why I Mount is that My Oracle writes file using UTIL_File in Dbserver only, so now I done the Mount and I can create file using VI in the Mounted point. But My UTIL_file is not able to create a file, the reason might be that Oracle writes only as ORA user and my Appserver has no such user, for that I have given the permission 777 for that particular folder, but no use, so I wonder do I need additional permission for this.

View 2 Replies View Related

Slackware :: Can't Change Permission Under Ntfs Mounted Fs

Jul 25, 2011

when i try to change permission for any file under mounted ntfs partitions (without any errors) it remains the same after changing.

#cat /etc/fstab

Quote:

/dev/sda3 swap swap defaults 0 0
/dev/sda4 / ext4 defaults 1 1
/dev/sda1 /win/C ntfs-3g fmask=111,dmask=000 1 0

[code]....

View 9 Replies View Related

Ubuntu :: Can't Write On Webdav Mounted Drive

Jul 16, 2010

I use davfs2 to mount a Webdav drive at startup. It mounts correctly and I have read access to all files my account gives me access to. One big problem though: I can't create of modify any file. I know it is not a user account problem because everything works well when I mount the drive in Windows 7 using WebDrive.

Here's the entry in /etc/fstab to automatically mount the drive:

Code:
http://someserver.local/docs /home/my_user/km_docs davfs user,rw,auto 0 0

The Webdav is hosted on a local SAP Portal server (if anyone is familiar with this).

I also tried to use Cadaver. It connects and reads perfectly. But when I try to create a file, I get a "409 Conflict" error, even the file has never existed on the server before.

View 3 Replies View Related

Fedora :: Grant Permission To Mount Ntfs File System For Normal User ?

Feb 19, 2010

I'm able to mount ntfs file system as root user but I want the same thing to be allowed to normal user .

I'm not much familier with linux environment so please explain me how to do that for normal user.

View 3 Replies View Related







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