Fedora - to create a test file? / Samba - n00b(ish)

fcek used Ask the Experts™


mkdir bla
chmod 777 bla

All looking good

If I swap to a different user I can create a file


#touch test.txt ?

What other test are good?  I suppose I can ls -la to see file perms.

Anything else?

Oh Im not such a Fedoar n00b now :-)

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Yes you can I user have enouth permission.

Linux commands:
So are you just trying to play with permissions?

Looking for command to switch user?

su - userID

Yes, touch is command to create file or change its timestamps.

# su -<username>   [To switch user]

# exit  [to quit the session from that user]

after giving chmod 777 you will be having enough permission.

# touch test.txt [It will create a empty file, If file is already exist it will modify the time stamp of file]

Could you please explain exactly what do you want to achieve so that we can help you in that manner.
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Now you can try adding sticky bit to the folder.

See what happens

chmod o+t foldername



chmod o+t foldername
What does a  sticky bit do ?
Yes it does.  So only the owner of the file can remove it.  Otherwise anyone with write permissions on the folder where the file resides can remove it.



sticky bit is cool :-)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial